<div class="xian">
<span class="txt">分割线文字 <br>English text</span>
</div>
.xian {
height: 1px;
margin-top: 40px;
text-align: center;
border-top: 1px solid #e2e2e2;
}
.txt{
position: relative;
top:-18px;
background: #fff;
display: inline-block;
}
效果:
优点:分割线长度自适应,文字可多行。