小程序中间有字的分隔线
代码如下:
wxml
<viewclass="line"><span>到底啦,我是有底线的</span></view>
wxss
/*分隔线--底部*/.line{width:90%;/*分隔线的长度*/margin:auto;height:1px;/*分隔线粗细*/text-align:center;font-size:24rpx;color:#aaa;background:#ccc;margin-top:5px;margin-bottom:22px;}.linespan{position:relative;top:-8px;background:#fff;padding:0px10px;}
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。