June 05, 2014

浮动和它的工作原理

The float CSS property specifies that an element should be taken from the normal flow and placed along the left or right side of its container, where text and inline elements will wrap around it. A floating element is one where the computed value of float is not none.

(MDN)

浮动属性表示元素应该从正常文档流中被取出,并沿着它的容器的左边或右边放置,而文字和行内元素要环绕着这个元素。一个浮动元素就是一个 float 属性被计算之后不是 none 的元素。


blog comments powered by Disqus