jQuery:Chrome textareas和resize事件 [英] jQuery : Chrome textareas and resize event
本文介绍了jQuery:Chrome textareas和resize事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
$('textarea')。resize(function(){...})
什么都不做。解决方案
看起来你不能专门附加事件来调整textarea的大小。窗口调整大小时调整大小事件。
Chrome makes textareas resizable by default. How can I attach events to the resizing events for the textareas ? Doing the naive $('textarea').resize(function(){...})
does nothing.
解决方案
It doesn't look like you can specifically attach events to resizing a textarea. The resize event fires when the window is resized.
这篇关于jQuery:Chrome textareas和resize事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文