帮助: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文件)。从管线

+0

但我想我下载了jQuery UI 1.8.13的所有组件,只需点击页面“http://jqueryui.com/download”中最右边的'下载'按钮即可。选择所有组件。 – Robert 2011-05-18 14:23:44

+0

如果文件已下载,您是否检查过Firebug(网络面板)?你可能有错误的路径...另外,你可以尝试手动包括所有文件(非缩小和非捆绑),看看它是否有帮助。 – johndodo 2011-05-22 20:10:17

的 “的jquery-UI-1.8.13.custom.css” 文件中删除该 “:(图像/ GIF; BASE64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs =数据)背景图像URL” 它会工作得很好:)

+0

它确实出现了,但位置看起来不正确:它应该位于上方的一个小空间。而在IE9中,它驻留在滚动条上:( – Robert 2011-05-18 14:19:38

+0

对不起,我没有给你答案。什么不会出现? – inadcod 2011-05-19 06:47:42

+0

谢谢,我会尽力的。 – Robert 2011-06-09 01:11:50