請問draggable和resizable同時使用
$(ui.draggable).clone().appendTo($(this)).draggable().resizable()我這樣寫
.resizable() 有作用
.draggable() 沒有作用
請高手幫忙 我用一個簡單的範例是都可以運作的:
[code html]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-tw">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-tw" />
<title>New Page</title>
<link type="text/css" href="http://jqueryui.com/themes/base/ui.all.css" rel="stylesheet" />
<style type="text/css">
#test {
border: 1px solid silver;
width: 300px;
height: 300px;
}
</style>
</head>
<body>
<div id="test">test</div>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/jquery-ui.min.js"></script>
<script type="text/javascript">
$(function() {
$('#test').draggable().resizable();
});
</script>
</body>
</html>
[/code]
你看要不要 po 出完整一點的 code? 問題已經解決
謝謝囉
頁:
[1]