The use of span tags "I have a bottom line"

<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			*{
				margin: 0;
				padding: 0;
			}
			.wrapper{
				margin: 100px;
				border: 1px solid black;
				width: 1000px;
				height: 100px;
				line-height: 100px;
				text-align: center;
				background: #f2f2f2;
			}
			.line{
				display: inline-block;
				width: 300px;
				border-top: 1px dashed blue;
				border-bottom: 1px dashed blue;
				vertical-align: middle;
			}
		</style>
	</head>
	<body>
		<div class="wrapper">
			<span class="line"></span>
			<span class="content">I have a bottom line</span>
			<span class="line"></span>
		</div>
	</body>
</html>

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324624620&siteId=291194637