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

1像素边框

时间:2016-12-16 22:36:24      阅读:164      评论:0      收藏:0      [点我收藏+]

标签:idt   top   tom   content   form   方法   bottom   pos   abs   

1像素边框用2px来渲染,所以有这么个方法;

.a{
        width: 100px;
        height: 100px;
        border-top: 1px solid #333;
        position: relative;
    }
.a:after{
        content: "";
        position: absolute;
        bottom: 0px;
        width: 100%;
        border-bottom: 1px solid #333;
       transform: scaleY(0.5);
 }

1像素边框

标签:idt   top   tom   content   form   方法   bottom   pos   abs   

原文地址:http://www.cnblogs.com/qq123456789/p/6188236.html

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