<style type="text/css">
.or{
width: 450px;
text-align: center;
position: relative;
}
.or:before,.or:after{
content: '';
position: absolute;
width: 200px;
height: 1px;
background: #ccc;
top: 50%;
transform: translateY(-50%);
}
.or:before{
left: 0;
}
.or:after{
right: 0;
}
</style>
<p class="or">or</p>
用伪元素画线
猜你喜欢
转载自blog.csdn.net/qq_31680395/article/details/80115107
今日推荐
周排行