<head>
<title>
演示
</title>
</head>
<body>
<div style="width:1080pxheight:20pxmargin:auto">
<div style="width:400pxheight:20pxfloat:left">
<hr style="width:400pxcolor:reddouble red">
</div>
<div style="width:180pxheight:20pxfloat:lefttext-align:centerborder-left:1px solid grayborder-right:1px solid gray">
<span style="display:block">
最新活动 ACTIVE
</span>
</div>
<div style="width:400pxheight:20pxfloat:left">
<hr>
</div>
</div>
</body>
</html>
<!DOCTYPE html><html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<style>
/* 宽度为10像素居中的实线 */
.aa {
width: 10px
height: 5px
border: 1px solid red
}
</style>
<body>
<!-- 这是实线 -->
<div class="aa"></div>
</body>
</html>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)