【发布时间】:2019-08-17 04:34:12
【问题描述】:
我看到在大多数网站上,人们经常在父 <div>s ::before 上使用伪 content:''; (我知道你需要放置内容) 和 display: table 和我不知道为什么。
和
【问题讨论】:
标签: html css html-table pseudo-element display
我看到在大多数网站上,人们经常在父 <div>s ::before 上使用伪 content:''; (我知道你需要放置内容) 和 display: table 和我不知道为什么。
和
【问题讨论】:
标签: html css html-table pseudo-element display
“clearfix”是一种在所有子元素都浮动时修复父元素高度为零的技巧。这样,父母就可以保持它的高度。
【讨论】: