问题
I've seen this, but I am wondering if there is any way to detect an overflow event.
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.
I want to be able to catch the overflow event so I can reset the height of the div to auto. Is this possible?
回答1:
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
来源:https://stackoverflow.com/questions/10431659/can-i-detect-an-overflow-event-in-jquery