我可以在jquery中检测到溢出事件吗? [英] Can I detect an overflow event in jquery?
问题描述
我看过这个,但我想知道是否有任何方式来检测溢出事件。
I've seen this, but I am wondering if there is any way to detect an overflow event.
我有一个div被一些jquery代码调整大小,但是后来在某个时间点内容的div更改和CSS高度:自动规则不再有效,因为以前的事件设置高度,所以显示混乱。
I have a div that gets resized by some jquery code, but then at some point later the content of that div changes and the css height:auto rule is no longer effective because a previous event set the height, so the display messes up.
我想要能够捕获溢出事件,所以我可以将div的高度重置为auto。这是可能的吗?
I want to be able to catch the overflow event so I can reset the height of the div to auto. Is this possible?
推荐答案
我不知道这是否有帮助,但我认为这是值得的:
I'm not sure if this is helpful at all, but I thought it was worth a shot:
FF: http://help.dottoro。 com / ljgsfkbc.php
Chrom& Safari: http://help.dottoro.com/ljbnnejo.php
Chrom & Safari: http://help.dottoro.com/ljbnnejo.php
这篇关于我可以在jquery中检测到溢出事件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!