Can I detect an overflow event in jquery?

匆匆过客 提交于 2019-12-29 09:15:07

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!