重绘
表面意思就是重新绘制。
不改变dom元素的位置,大小等。只改变颜色,浏览器对dom元素重新绘制的过程。
回流
就是改变了dom元素的位置,大小,颜色等,需要重新计算元素的大小,尺寸,还需要把重新计算的尺寸重新绘制出来。这个过程叫做回流