0
点赞
收藏
分享

微信扫一扫

常用mixin

mafa1993 2022-02-10 阅读 97

修复浮动导致的高度坍塌问题

@mixin clearfix {
  &:after {
    clear: both;
    content: '.';
    display: block;
    height: 0;
    line-height: 0;
    overflow: hidden;
  }
  *height: 1%;
}

单行文本超长显示省略号


@mixin textOverflow($width:100%,$display:block) {
  max-width: $width;
  display: $display;
  white-space: nowrap;
  -ms-text-overflow: ellipsis;
  text-overflow: ellipsis;
  overflow: hidden;
}
举报

相关推荐

Mixin 混入

mixin 混入

vue -- mixin(混入)

Vue:mixin混入

Vue的混入mixin

python 混入类MixIn

0 条评论