题目:模仿品优购页面做一个特惠模块。
<!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>
* {
padding: 0;
margin: 0;
}
a {
text-decoration: none;
color: #666;
}
li {
list-style: none;
/* 去掉li前面的小圆点 */
}
.box {
width: 248px;
height: 163px;
margin: 100px auto;
border: 1px solid green;
}
.box h3 {
height: 32px;
border-bottom: 1px dotted green;
font-size: 14px;
font-weight: 400;
line-height: 32px;
padding-left: 15px;
}
.box ul li a {
font-size: 12px;
}
.box ul li a:hover {
text-decoration: underline;
}
.box ul li {
height: 23px;
line-height: 23px;
padding-left: 20px;
}
.box ul {
margin-top: 7px;
}
</style>
</head>
<body>
<div class="box">
<h3>西兰花🥦快报</h3>
<ul>
<li><a href="#">【特惠】爆款耳机🎧5折秒杀!</a></li>
<li><a href="#">【特惠】爆款手机📱买一送一!</a></li>
<li><a href="#">【特惠】爆款连衣裙👗送同色系口红💄!</a></li>
<li><a href="#">【特惠】爆款相机📷99.9包邮!</a></li>
<li><a href="#">【特惠】爆款笔记本💻送充电线!</a></li>
</ul>
</div>
</body>
</html>