首页 > 移动平台 > 详细

移动端半像素 0.5PX 边框实现。

时间:2017-07-19 09:56:07      阅读:391      评论:0      收藏:0      [点我收藏+]
 1 /*半像素*/
 2 .halfpxline_after, .halfpxline_before {
 3   position: relative;
 4 }
 5 
 6 .halfpxline_after:after, .halfpxline_before:before {
 7   content: ‘‘;
 8   display: block;
 9   position: absolute;
10   left: 0;
11   right: 0;
12   height: 1px;
13   background-color: #e5e5e5;
14   -webkit-transform: scaleY(0.5);
15   transform: scaleY(0.5);
16 }
17 
18 .halfpxline_after:after {
19   bottom: 0;
20   -webkit-transform-origin: 0 1px;
21   transform-origin: 0 1px;
22 }
23 
24 .halfpxline_before:before {
25   top: 0;
26   -webkit-transform-origin: 0 0;
27   transform-origin: 0 0;
28 }

 

移动端半像素 0.5PX 边框实现。

原文:http://www.cnblogs.com/Evo1uti0n/p/7203958.html

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