如何在调整td标签大小时调用javascript/jquery函数 [英] How to call javascript/jquery function on resize of td tag
本文介绍了如何在调整td标签大小时调用javascript/jquery函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在td的大小调整事件上调用javascript/jquery函数
这是代码
How to call javascript/jquery function on resize event of td
Here is the code
<td id="cTree" valign="top" width="200px" class="fullview">
style="overflow: auto;
position: relative; z-index: 3000;">
<uc2:Categories ID="Categories1" runat="server" height="100%"/>
</td>
推荐答案
嗨 您是否尝试过使用jqueryUI.您可以使用resize事件,还有更多事件,例如start,stop等.
请参阅以下示例.
Hi Have you tried with jqueryUI. You can use resize event and there are many more events like start, stop etc.
see below sample.
//bind the resizable method to your td element.
(" ).可调整大小({ 调整大小:功能(事件,用户界面){ // 这是事件...该事件将在调整大小时触发,您可以连接 // 任何方法或编写您想执行的任何操作. } });
( ".fullview" ).resizable({ resize: function(event, ui) { //this is the event... that will fire on resize here you can hook up //any method or write any action you wanna do. } });
访问此网址:
jquery UI可调整大小的示例 [
visit this url:
jquery UI resizable sample[^]
这篇关于如何在调整td标签大小时调用javascript/jquery函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文