摘要:
CSS:a{ float:right; }li{ padding-bottom; overflow:hidden}因为 li 使用了 overflow(清除浮动),padding-bottom失效解决办法有:一、将overflow去掉,使用float。二、.clearfix{ *zoom: 1; &:before, &:after{ display: table; content: ""; line-height: 0; } &:after{ clear: both; }}将overflow换成.clearfix来清除浮动。
阅读全文