【发布时间】:2013-02-05 01:38:45
【问题描述】:
.clearfix {
*zoom: 1;
&:before,
&:after {
display: table;
content: "";
// Fixes Opera/contenteditable bug:
// http://nicolasgallagher.com/micro-clearfix-hack/#comment-36952
line-height: 0;
}
&:after {
clear: both;
}
}
- 为什么不使用
display:block? - 另外,为什么它也适用于
::before伪类?
【问题讨论】:
标签: twitter-bootstrap less clearfix