close
- When you add or remove a DOM node.
- When you apply a style dynamically (such as element.style.width="10px").
- When you retrieve a measurement that must be calculated, such as accessing offsetWidth, clientHeight, or any computed CSS value (via getComputedStyle() in DOM-compliant browsers or currentStyle in IE).
全站熱搜