帮助:jQuery UI可调整大小无法正常工作!
问题描述:
jQuery的UI演示可调整大小的提供了一个页面:http://jqueryui.com/demos/resizable/textarea.html帮助:jQuery UI可调整大小无法正常工作!
而且我也跟着,为了使类似的页面:
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>jQuery UI Example Page</title>
<link type="text/css" href="css/ui-lightness/jquery-ui-1.8.13.custom.css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery-1.5.1.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.13.custom.min.js"></script>
<style>
.ui-resizable-se {
bottom: 17px;
}
</style>
<script>
$(function() {
$("#resizable").resizable({
handles: "se"
});
});
</script>
</head>
<body>
<div class="demo">
<textarea id="resizable" rows="5" cols="20"></textarea>
</div>
</body>
</html>
但在我没有处理图像(一个在底部右侧)页!我将我的代码与示例进行了比较。实际上,除了头文件“包含”js和css文件外,它们几乎相同。我想念什么?
答
您必须包含jquery.ui.core.js(可能还有其他JS文件)。从管线
但我想我下载了jQuery UI 1.8.13的所有组件,只需点击页面“http://jqueryui.com/download”中最右边的'下载'按钮即可。选择所有组件。 – Robert 2011-05-18 14:23:44
如果文件已下载,您是否检查过Firebug(网络面板)?你可能有错误的路径...另外,你可以尝试手动包括所有文件(非缩小和非捆绑),看看它是否有帮助。 – johndodo 2011-05-22 20:10:17