国内最全IT社区平台 联系我们 | 收藏本站
华晨云阿里云优惠2
您当前位置:首页 > web前端 > jquery > jquery 插件 jquery.resizable.js 的使用实例

jquery 插件 jquery.resizable.js 的使用实例

来源:程序员人生   发布时间:2014-04-27 06:59:15 阅读次数:3084次

jQuery.resizable 是基于jQuery开发的一款插件, 为用户提供html dom resize 行为;

使用步骤

<script type="text/javascript" src="js/jquery-1.4.2.js"></script>
<script type="text/javascript" src=js/jquery.resizable.js></script>
<script type="text/javascript">
$(function() {
$("#e1").resizable( {
handles : "n,e,se,all",
helper : true,
helperStyle : {
"border" : "0px solid #888",
"border-bottom" : "5px solid #888"
},
maxHeight : 600,
maxWidth : 600,
minHeight : 10,
minWidth : 10,
onStartResize : function() {
},
onResize : function() {
},
onStopResize : function() {
}
});
$("#disabled").click(function() {
$("#e1").resizable('disabled');
});

});
</script>

完整的使用文档:点击下载

生活不易,码农辛苦
如果您觉得本网站对您的学习有所帮助,可以手机扫描二维码进行捐赠
程序员人生
------分隔线----------------------------
分享到:
------分隔线----------------------------
关闭
程序员人生