首页 > Web开发 > 详细

Css画线

时间:2017-08-31 18:34:32      阅读:278      评论:0      收藏:0      [点我收藏+]

文字左右两边的线

技术分享

.star-header{
color:#f46600;
font-size: 20px;
text-align: center;
}
.star-header span{
display: block;
position: relative;
}
.star-header span:before,.star-header span:after{
content: ‘‘;
position: absolute;
top:52%;
background: #CCCCCC;
width: 46%;
height: 1px;
}
.star-header span:before{
left: 0%;
}
.star-header span:after{
right: 0%;
}



画竖线

技术分享

.otherLine:before{
content: ‘‘;
display: inline-block;
height: 10px;
width: 1px;
background: #aaaaaa;
margin:0 10px;
}


 





Css画线

原文:http://www.cnblogs.com/kellyuc/p/7459787.html

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