阅读背景:

是否有任何非轮询方式来检测DOM元素的大小或位置何时发生变化?

来源:互联网 

For a long time, I've been looking for a way to detect when a DOM element's size or position has changed. It could be because the window resized, or because new child elements were added to the element, or because new elements were added around this element, or because CSS rules have changed, or because the user has changed their browser's font size. There are a huge number of reasons that an element's size or position would change.For a long time, I've been looking for a way to




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: