css & clearfix & clear-fixed
css & clearfix & clear-fixed
https://zzk.cnblogs.com/my/s/blogpost-p?Keywords=clearfix
.group:after {
content: "";
display: table;
clear: both;
}
.clearfix:after {
visibility: hidden;
display: block;
font-size: 0;
content: " ";
clear: both;
height: 0;
}
.clearfix { display: inline-block; }
/* start commented backslash hack \*/
* html .clearfix { height: 1%; }
.clearfix { display: block; }
/* close commented backslash hack */
vue & global css
<style lang="css">
/* global css */
.auto-clearfix::after{
display: table;
overflow: hidden;
visibility: hidden;
width: 0;
height: 0;
clear: both;
content: "";
}
</style>
https://css-tricks.com/snippets/css/clear-fix/
https://stackoverflow.com/questions/211383/what-methods-of-clearfix-can-i-use
https://github.com/xgqfrms/FEIQA/issues/23
https://github.com/xyzdata/RAIO/issues/271
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/10607618.html
未经授权禁止转载,违者必究!