<title>jQuery UI 缩放(Resizable) - 限制缩放区域</title>
<link rel="stylesheet" href="/css/jqu1.10.4/jquery-ui.min.css">
<script src="/js/jqu/jquery.min1.10.2.js"></script>
<script src="/js/jqu/jquery-ui.min1.10.4.js"></script>
<link rel="stylesheet" href="jqueryui/style.css">
#container { width: 300px; height: 300px; }
#container h3 { text-align: center; margin: 0; margin-bottom: 10px; }
#resizable { background-position: top left; width: 150px; height: 150px; }
#resizable, #container { padding: 0.5em; }
$( "#resizable" ).resizable({
containment: "#container"