以下内容对我来说非常有效(尽管您必须修改包含图以匹配您的可拖动元素尺寸):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us" lang="en-us">
<head>
<title>jQuery</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<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.2/jquery-ui.min.js"></script>
<script type='text/javascript'>
$(document).ready(function(){
$("#draggable").draggable({
containment: [-150,-150,0,0],
scroll: 'false'
});
});
</script>
<style type="text/css">
#container {
width:200px;
height:200px;
border:1px solid #cccccc;
overflow:hidden;
}
#draggable {
width:359px;
height:359px;
background:#cc0000 url("http://www.sudoku.4thewww.com/Grids/grid.jpg");
}
</style>
</head>
<body>
<div id="container">
<div id="draggable"></div>
</div>
</body>
</html>