解决0.5px在部分机型上面的兼容显示

时间:2021-08-25 12:28:00   收藏:0   阅读:10
.num-box {
    position: relative;
    overflow: hidden;
}
.num-box::before {
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box;
    width: 200%;
    height: 200%;
    border: 0.01rem solid #ff60a9;
    transform: scale(0.5) translate(-50%, -50%);
    content: ‘‘;
  }

使用scale(0.5)来解决px小的时候的展示问题

原文:https://www.cnblogs.com/wangxirui/p/15184231.html

评论(0)
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!