scss Clearfix CSS基于David Walsh的代码:http://davidwalsh.name/css-clear-fix

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了scss Clearfix CSS基于David Walsh的代码:http://davidwalsh.name/css-clear-fix相关的知识,希望对你有一定的参考价值。

//Clearfix - http://davidwalsh.name/css-clear-fix

//Vanilla CSS
.clear:before, .clear:after { display:table; content:''; }
.clear:after { clear:both; }

//Nested sytle - Sass
.clear {
	&:after,
	&:after {
		display: table;
		content: '';
	}
	&:after { clear: both; }
}

以上是关于scss Clearfix CSS基于David Walsh的代码:http://davidwalsh.name/css-clear-fix的主要内容,如果未能解决你的问题,请参考以下文章

scss clearfix with :: after elem #css

scss SCSS:Mixin clearfix

scss clearfix.scss

scss SCSS Clearfix Mixin

scss ClearFix

scss 扩展clearfix