简体   繁体   English

jQuery ui:窗口可调整大小

[英]jquery ui :window resizable

Please look at the format of my code: In the below example, I try to Applying resizable window but without success. 请查看我的代码格式:在下面的示例中,我尝试应用可调整大小的窗口,但未成功。 Many thanks, 非常感谢,

jquery ui code: jQuery UI代码:

$(document).ready(function(){
  $( "#simpleResize" ).resizable({ minHeight: 50, minWidth: 50, maxHeight: 400, maxWidth: 400});
});

link for code example 代码示例链接

Your problem is in the markup - you don't have to / shouldn't supply the elements for drag handles, setting the ui-* classes, etc. Resizable does all that by itself. 您的问题出在标记中-您不必/不应该为拖动手柄,设置ui-*类等提供元素ui-*可实现所有这些功能。 I forked your fiddle so you can see how it works. 我分叉了您的小提琴,以便您了解它的工作原理。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM