<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="Generator" content="EditPlus®">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<title>Document</title>
<style type="text/css">
.line-wrap{
position: relative;
text-align:center;
}
.line-wrap:after{
position:absolute;
left:0;
top:50%;
border-top:1px dashed #ddd;
content:'';
height:0;
width:100%;
z-index:1;
}
.line-wrap .text{
background-color:red;
padding:5px;
position: relative;
z-index:2;
}
</style>
</head>
<body>
<div class="line-wrap">
<span class="text">文字内容</span>
</div>
</body>
</html>

