When does reflow happen in a DOM environment?

前端 未结 3 1721
终归单人心
终归单人心 2020-11-22 11:14

What kinds of activities will trigger reflow of web page with DOM?

It seems there are different points of view. According to http://www.nczonline.net/blog/2009/02/03

3条回答
  •  爱一瞬间的悲伤
    2020-11-22 11:54

    Look at the "Rendering triggered by Property Read Access" section of Understanding Internet Explorer Rendering Behaviour, where the following code in IE will cause rendering activity.

    function askforHeight () {
      $("#lower").height();  
    }
    

提交回复
热议问题