Javascript 调整元素大小后发出警报
在重新调整元素大小之后,如何放置警报消息?也就是说,在重新调整元素的大小之后。 resizeend()方法不起作用。请检查下面的链接Javascript 调整元素大小后发出警报,javascript,jquery,html,Javascript,Jquery,Html,在重新调整元素大小之后,如何放置警报消息?也就是说,在重新调整元素的大小之后。 resizeend()方法不起作用。请检查下面的链接 $( $clone ).resizable({ stop:function(){ hello(); }, }); 查看下面的链接了解更多信息,它使用jQueryUI调整大小并在调整大小后调用javascrip html内容 &l
$( $clone ).resizable({
stop:function(){
hello();
},
});
查看下面的链接了解更多信息,它使用jQueryUI调整大小并在调整大小后调用javascrip
html内容
<div class = "resizethis">
resize this widget
css
你也可以添加代码。此处:
<script src="http://code.jquery.com/jquery-1.10.2.js"></script>
<script src="http://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
<link href="http://code.jquery.com/ui/1.10.4/themes/ui-lightness/jquery-ui.css" rel="stylesheet">
$('.resizethis').resizable({
stop: resizestopped
});
function resizestopped(){
alert('resize stopped');
}
.resizethis{
width: 100px;
height: 100px;
border: 2px solid red;
}