NatChen

Once you have chosen the road of life, you have to be brave enough to go to the end and never look back.

摘要: 解决高度塌陷的问题 – 清除浮动 CSS中有个讨论较多的话题就是如何清除浮动,清除浮动其实就一个目的,就是解决高度塌陷的问题。为什么会高度塌陷?什么时候会高度塌陷?塌陷原因是:元素含有浮动属性 – 破坏inline box – 破坏line box高度 – 没有高度 – 塌陷。什么时候会塌陷:当标签 阅读全文
posted @ 2017-11-07 16:52 NatChen 阅读(210) 评论(0) 推荐(0)