css 中间文字 两边横线
作者:互联网
<div class="content"> <div class="line"></div> <div class="txt">文字内容</div> <div class="line"></div> </div>
.content { display: flex; align-items: center; justify-content: center; .txt { margin: 0 10px; vertical-align: -8%; } .line { width: 100px; border-top: 1px solid #ccc; } }
标签:文字,横线,center,align,100px,8%,content,两边,css 来源: https://www.cnblogs.com/Blogzlj/p/15075960.html