码迷,mamicode.com
首页 > 其他好文 > 详细

实现0.5px的一条线

时间:2017-07-26 10:50:10      阅读:132      评论:0      收藏:0      [点我收藏+]

标签:content   ott   实现   兼容   兼容性   after   兼容性问题   pos   tran   

.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的一条线

标签:content   ott   实现   兼容   兼容性   after   兼容性问题   pos   tran   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!