这几天把以前写的东西进行整理
HTML:
<!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>仿京东快报</title>
<style>
*{
margin: 0;
padding: 0;
}
.box{
width: 350px;
height: 200px;
border: 1px solid black;
margin: 50px auto;
}
.box ul{
list-style: none;
height: 40px;
line-height: 40px;
padding-left: 20px;
}
.box h1{
font-style: 18px;
font-weight: 100;
color: rgb(197, 190, 190);
border-bottom: 1px dashed rgb(179, 170, 170);
height: 35px;
line-height: 35px;
text-indent: 2em;
}
a{
text-decoration: none;
font-style: 14px;
}
span{
font-weight: 30px;
color: rgb(150, 143, 143);
}
/* 变颜色 */
a:hover{
color: coral;
}
</style>
</head>
<body>
<div class="box">
<h1>京东快报</h1>
<ul>
<li><span>[特惠]</span><a href="">海飞丝去油又去屑</a> <a href="">c超级清爽</a></li>
<li><span>[公告]</span><a href="">我刘家奕好帅</a> </li>
<li><span>[特惠]</span><a href="">刘家奕是宇宙无敌大帅哥</a> <a href="">超级划算</a></li>
<li><span>[公告]</span><a href="">iphone 10086 pro 只要一块钱</li>
</ul>
</div>
</body>
</html>