Files
ClassContent/历届学生/fontendsix/项目练习/上课项目/新浪/index.html
2024-09-27 02:06:13 +08:00

194 lines
5.2 KiB
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>Document</title>
<style>
li {
list-style: none;
/* 清除li标签的小圆点 */
}
a {
text-decoration: none;
color: #333;
/* 清除a标签的下划线 */
}
body,
ul,
p {
margin: 0;
padding: 0;
}
.float_left {
float: left;
}
.list {
width: 300px;
height: 413px;
background: #faf8f8;
padding: 16px 15px 4px;
box-sizing: border-box;
}
.list_title {
margin-bottom: 8px;
}
.list_title span {
font-size: 14px;
font-weight: 400;
}
.list_title span::before {
content: "";
width: 4px;
height: 14px;
background: #fdd000;
border-radius: 2px;
display: inline-block;
position: relative;
top: 2px;
margin-right: 7px;
}
.list_content li {
overflow: hidden;
margin-bottom: 18px;
}
.list_content li:first-child {}
.list_content .left {
width: 90px;
height: 60px;
position: relative;
margin-right: 10px;
margin-top: 8px;
}
.list_content .left span {
width: 18px;
height: 18px;
background: #fdd000;
font-size: 14px;
line-height: 18px;
display: inline-block;
text-align: center;
position: absolute;
}
.list_content .text {
width: 170px;
margin-top: 6px;
}
.text .num {
text-align: right;
}
.list_content .title {
font-size: 14px;
}
.read {
font-size: 12px;
color: #999;
}
.list_content .tips {
width: 18px;
height: 18px;
background: #e8e8e8;
font-size: 14px;
line-height: 18px;
display: inline-block;
text-align: center;
margin-right: 10px;
position: relative;
margin-top: 4px;
}
.tips_text {
position: relative;
height: 44px;
width: 240px;
}
.tips_text .read {
position: absolute;
right: 0;
bottom: 0;
}
</style>
</head>
<body>
<div class="list">
<div class="list_title">
<span>24小时热文</span>
</div>
<ul class="list_content">
<li>
<div class="left float_left">
<span>1</span>
<img src="https://p7.itc.cn/c_fill,w_90,h_60,g_faces,q_70/images03/20211020/0d2dee1ac0094ecd9d82c5bdbbca77ac.jpeg"
alt="">
</div>
<div class="text float_left">
<p>
<a href="" class="title">台风过后这种"仙女环"频频出现!有剧毒!千万别碰</a>
</p>
<p class="num">
<a href="" class="read">718万阅读</a>
</p>
</div>
</li>
<li>
<div class="tips float_left">1</div>
<div class="tips_text float_left">
<p>女子为植物人丈夫办残疾证,被要求“必须植物人本人来”</p>
<a href="" class="read">718万阅读</a>
</div>
</li>
<li>
<div class="tips float_left">1</div>
<div class="tips_text float_left">
<p>女子为植物人丈夫办残疾证,被要求“必须植物人本人来”</p>
<a href="" class="read">718万阅读</a>
</div>
</li>
<li>
<div class="tips float_left">1</div>
<div class="tips_text float_left">
<p>女子为植物人丈夫办残疾证,被要求“必须植物人本人来”</p>
<a href="" class="read">718万阅读</a>
</div>
</li>
<li>
<div class="tips float_left">1</div>
<div class="tips_text float_left">
<p>女子为植物人丈夫办残疾证,被要求“必须植物人本人来”</p>
<a href="" class="read">718万阅读</a>
</div>
</li>
<li>
<div class="tips float_left">1</div>
<div class="tips_text float_left">
<p>女子为植物人丈夫办残疾证,被要求“必须植物人本人来”</p>
<a href="" class="read">718万阅读</a>
</div>
</li>
</ul>
</div>
</body>
</html>