Files
ClassContent/历届学生/front-end-team/项目练习/学生项目/李康/css练习/包河练习/index.html
2024-09-27 02:06:13 +08:00

269 lines
5.6 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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>
<script src="./rem.js"></script>
<link rel="stylesheet" href="./clear.css">
</head>
<style>
.pa {
padding-left: 0.25rem;
padding-right: 0.24rem;
}
.header {
height: 1rem;
background-color: rgb(0 0 0 / 70%);
display: flex;
align-items: center;
justify-content: space-between;
padding-left: 0.24rem;
padding-right: 0.4rem;
position: fixed;
left: 0;
top: 0;
width: 100%;
box-sizing: border-box;
z-index: 999;
}
.header img {
height: 0.65rem;
}
.header .open {
width: 1.44rem;
height: 0.52rem;
font-size: 0.24rem;
color: #ffffff;
display: flex;
align-items: center;
justify-content: center;
background-color: #d0302c;
border-radius: 0.08rem;
}
.content {
margin-top: 1rem;
}
.video {
height: 4.22rem;
}
.video_text {
padding-top: 0.59rem;
border-bottom: 0.01rem solid #e5e5e5;
padding-bottom: 0.53rem;
position: relative;
}
.video_text .title {
font-size: 0.36rem;
color: #333333;
margin-bottom: 0.3rem;
}
.video_text .time {
font-size: 0.23rem;
color: #999999;
margin-bottom: 0.3rem;
}
.video_text .action {
display: flex;
align-items: center;
justify-content: space-between;
}
.video_text .action .action_left {
display: flex;
align-items: center;
}
.action .action_item {
display: flex;
align-items: center;
}
.action .action_item .collect {
width: 0.28rem;
height: 0.28rem;
}
.action .action_item .good {
width: 0.26rem;
height: 0.27rem;
}
.action .action_item .down {
width: 0.17rem;
height: 0.1rem;
margin-left: 0.11rem;
}
.action .action_item span {
margin-left: 0.08rem;
font-size: 0.24rem;
color: #999999;
}
.m_right {
margin-right: 0.6rem;
}
.recommend .recommend_title {
height: 1rem;
background-color: #ffffff;
font-size: 0.32rem;
color: #333333;
display: flex;
align-items: center;
}
.recommend ul {
display: flex;
overflow-x: scroll;
}
.recommend ul li {
width: 2.74rem;
margin-right: 0.1rem;
flex-shrink: 0;
}
.recommend .top {
width: 2.74rem;
height: 1.56rem;
position: relative;
margin-bottom: 0.24rem;
}
.recommend .top img {
width: 100%;
height: 100%;
}
.recommend .top span {
font-size: 0.22rem;
color: #ffffff;
position: absolute;
right: 0.14rem;
bottom: 0.13rem;
}
.recommend .text {
font-size: 0.28rem;
color: #333333;
}
.active .text {
color: #d0302c;
}
</style>
<body>
<div class="header">
<img src="./img/zbh_h5_img_logo.png" alt="">
<div class="open">打开</div>
</div>
<div class="content">
<img src="./img/video.png" alt="" class="video">
<div class="video_text pa">
<div class="title">香港24小时 | 8月25日发生了什么?暴力局面再次升级</div>
<div class="time">2019-04-30 10:45</div>
<div class="action">
<div class="action_left">
<div class="action_item m_right">
<img class="collect" src="./img/collect.png" alt="">
<span>收藏</span>
</div>
<div class="action_item ">
<img class="good" src="./img/good.png" alt="">
<span>12</span>
</div>
</div>
<div class="action_right">
<div class="action_item">
<span>简介</span>
<img class="down" src="./img/down.png" alt="">
</div>
</div>
</div>
</div>
<div class="recommend">
<div class="recommend_title pa">相关推荐</div>
<ul class="pa">
<li class="active">
<div class="top">
<img src="./img/video.png" alt="">
<span>03:07</span>
</div>
<div class="text">
一生中总要有个夏天给海岛,我的9天8夜
</div>
</li>
<li>
<div class="top">
<img src="./img/video.png" alt="">
<span>03:07</span>
</div>
<div class="text">特朗普说他有绝对权利命令美企退出中国
</div>
</li>
<li>
<div class="top">
<img src="./img/video.png" alt="">
<span>03:07</span>
</div>
<div class="text">七岁孩子被欺负了,爸爸的做法引起关注...</div>
</li>
</ul>
</div>
</div>
</body>
</html>