简体   繁体   中英

Help: jQuery UI resizable doesn't work properly!

The jQuery UI Demo for the resizable provides a page: http://jqueryui.com/demos/resizable/textarea.html

And I followed that to make a similar page:

<!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>

But there's no handle image(the one in the bottom right) in my page! I compared my code with the sample. Actually, they're nearly the same except the header "including" js and css files. Am I miss something?

您必须包括jquery.ui.core.js(以及可能的其他JS文件)。

在“ jquery-ui-1.8.13.custom.css ”文件中305行删除此“ background-image:url(data:image / gif; base64,R0lGODlhAQABAAD / ACwAAAAAAQABAAACADs =); ”,它将正常工作:)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM