當(dāng)瀏覽器引擎獲取網(wǎng)頁中一些屬性時,瀏覽器為取得正確的值也會觸發(fā)重排,所以我們在在多次使用這些屬性值時應(yīng)進(jìn)行緩存。網(wǎng)站中可修改屬性包括:offsetTop、offsetLeft、 offsetWidth、offsetHeight、scrollTop、scrollLeft、scrollWidth、scrollHeight、clientTop、clientLeft、clientWidth、clientHeight、getComputedStyle() (currentStyle in IE)。