首页 > 其他 > 详细

实现0.5px的一条线

时间:2017-07-26 10:34:05      阅读:266      评论:0      收藏:0      [点我收藏+]
.box{
  position: relative;
}
.box::after{
  content: ‘‘;
  position: absolute;
  width: 200%;
  height: 1px;
  bottom: 0;
  border-bottom: 1px solid red;
  transform-origin: 0 0;
  transform: scale(.5,.5);
  box-sizing: border-box
}
 
注意:C3有兼容性问题,使用时需要加私有前缀

实现0.5px的一条线

原文:http://www.cnblogs.com/karrylili/p/7238015.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!