CSS案例
快报模块
![快报模块](https://i-blog.csdnimg.cn/blog_migrate/d961e9e2d0814cdda23e08b136601e4f.png)
代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
* {
margin: 0;
padding: 0;
}
.box {
width: 248px;
height: 163px;
border: 1px solid #ccc;
margin: 100px auto;
}
.biaoti {
height: 32px;
font-size: 14px;
font-weight: 400;
line-height: 32px;
padding-left: 15px;
border-bottom: 1px dotted rgb(194, 189, 189);
}
.xiaobiaoti {
margin-top: 7px;
}
.xiaobiaoti li {
list-style: none;
height: 23px;
padding-left: 20px;
}
a {
text-decoration: none;
color: #666666;
font-size: 12px;
line-height: 20px;
}
a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
</body>
<div class="box">
<h3 class="biaoti">
品优购快报
</h3>
<ul class="xiaobiaoti">
<li><a href="#">【特惠】爆款耳机5折秒!</a></li>
<li><a href="#">【特惠】爆款耳机5折秒!</a></li>
<li><a href="#">【特惠】爆款耳机5折秒!</a></li>
<li><a href="#">【特惠】爆款耳机5折秒!</a></li>
<li><a href="#">【特惠】爆款耳机5折秒!</a></li>
</ul>
</div>
</html>