jquery-ui.min.js的draggable()拖拽功能

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<script src='http://libs.baidu.com/jquery/1.7.2/jquery.min.js'></script>
<script src="http://libs.baidu.com/jqueryui/1.9.0/jquery-ui.min.js "></script>
<style>
#draggable { width: 150px; height: 150px; padding: 0.5em; border:#AAA 1px solid; background-color:#EEE; }
</style>
</head>
<body>
<div id="draggable">求拖走</div>
<script>
$(function() {
    $( "#draggable" ).draggable({draggable:false});
});
</script>
</body>
</html>
posted @ 2014-09-17 09:18  刘金宇  阅读(1152)  评论(0编辑  收藏  举报