我下载了最新的jquery ui以及旧版本来测试它们,here
我测试了以下jquery-ui-1.7.2 \ jquery-ui-1.7.2 \ demos \ resizable \ default.html
并且这不适用于任何版本的ie
另外,最新的:
的jquery-UI-1.10.3 \ jquery的-UI-1.10.3 \演示\可调整大小\ default.html中
我可能没有使用正确的版本吗?我已经看到这在jsfiddle上表现得很好并且在ie上工作正常。我在哪里可以获得使其工作所需的相同文件?
这是示例中的代码
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Resizable - Default functionality</title>
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
<script src="../../jquery-1.9.1.js"></script>
<script src="../../ui/jquery.ui.core.js"></script>
<script src="../../ui/jquery.ui.widget.js"></script>
<script src="../../ui/jquery.ui.mouse.js"></script>
<script src="../../ui/jquery.ui.resizable.js"></script>
<link rel="stylesheet" href="../demos.css">
<style>
#resizable { width: 150px; height: 150px; padding: 0.5em; }
#resizable h3 { text-align: center; margin: 0; }
</style>
<script>
$(function() {
$( "#resizable" ).resizable();
});
</script>
</head>
<body>
<div id="resizable" class="ui-widget-content">
<h3 class="ui-widget-header">Resizable</h3>
</div>
<div class="demo-description">
<p>Enable any DOM element to be resizable. With the cursor grab the right or bottom border and drag to the desired width or height.</p>
</div>
</body>
</html>
答案 0 :(得分:1)
我希望您复制并粘贴以下代码,并在IE上试用,如果它有效,那么您的文件路径就会出现问题。
<!doctype html>
<html lang="en"><head>
<meta charset="utf-8">
<title>jQuery UI Resizable - Default functionality</title>
<script src="http://code.jquery.com/jquery-1.9.1.js "></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">
<style>
#resizable { width: 150px; height: 150px; padding: 0.5em; }
#resizable h3 { text-align: center; margin: 0; }
</style>
<script>
$(function() {
$( "#resizable" ).resizable();
});
</script>
</head>
<body>
<div id="resizable" class="ui-widget-content">
<h3 class="ui-widget-header">Resizable</h3>
</div>
<div class="demo-description">
<p>Enable any DOM element to be resizable. With the cursor grab the right or bottom border and drag to the desired width or height.</p>
</div>
</body>
</html>
答案 1 :(得分:1)
试试这个css链接:
<link rel="stylesheet" type="text/css" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">