xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

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



posted @ 2019-03-27 15:04  xgqfrms  阅读(431)  评论(4编辑  收藏  举报