主页:
<!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>02htmlcss案例——培训响应式</title>
<link rel="stylesheet" href="../css/style01.css">
</head>
<body>
<div class="one center_page">
<div class="one-left"> <img src="../素材/img/logo.png"></div>
<div class="one-left01">
<img src="../素材/img/quan.jpg">
<img src="../素材/img/search.png" width="20px" height="20px">
</div>
<div class="user">
<img src="../素材/img/vip.png" width="30px" height="30px">
<img src="../素材/img/userimg.png" width="30px" height="30px">
</div>
</div>
<div class="two center_page">
<img src="../素材/img/banner/lbt-alyun.png" width="800px" height="300px">
</div>
<div class="three center_page">
<img src="../../还原/img/人物透明1.png" width="800px" height="240px">
</div>
<div class="four center_page">
<div class="hot">
<div class="img01"> <img src="../素材/img/hot.png" width="20px" height="20px"></div>
<div class="text01">热门视频</div>
</div>
<div>
<div class="tp01">
<div><img class="border-ra" src="../素材/img/hot/zt-x.jpeg" width="300px" height="200px"></div>
<div class="txt">工业级别圣诞节撒覅偶就佛法撒旦飞机欧萨金额为</div>
<div class="txt">
<div class="fl">级别:高级</div>
<div class="fr">¥1333</div>
</div>
</div>
<div class="tp02-1">
<div><img class="border-ra" src="../素材/img/hot/rabbitmq.jpeg" width="300px" height="200px"></div>
<div class="txt">工业级别圣诞节撒覅偶就佛法撒旦飞机欧萨金额为</div>
<div class="txt">
<div class="fl">级别:高级</div>
<div class="fr">¥1333</div>
</div>
</div>
</div>
<div>
<div class="tp01">
<div><img class="border-ra1" src="../素材/img/hot/alibabacloud.jpg" width="300px" height="200px"></div>
<div class="txt1">工业级别圣诞节撒覅偶就佛法撒旦飞机欧萨金额为</div>
<div class="txt1">
<div class="fl">级别:高级</div>
<div class="fr">¥1333</div>
</div>
</div>
<div class="tp02-1">
<div><img class="border-ra" src="../素材/img/hot/ssm.png" width="300px" height="200px"></div>
<div class="txt">工业级别圣诞节撒覅偶就佛法撒旦飞机欧萨金额为</div>
<div class="txt">
<div class="fl">级别:高级</div>
<div class="fr">¥1333</div>
</div>
</div>
</div>
</div>
<div class="five center_page">
<div class="hot">
<div class="img01"> <img src="../素材/img/hot.png" width="20px" height="20px"></div>
<div class="text01">最新上市</div>
</div>
<div>
<div class="tp01">
<div><img class="border-ra" src="../素材/img/hot/zt-x.jpeg" width="300px" height="200px"></div>
<div class="txt">工业级别圣诞节撒覅偶就佛法撒旦飞机欧萨金额为</div>
<div class="txt">
<div class="fl">级别:高级</div>
<div class="fr">¥1333</div>
</div>
</div>
<div class="tp02-1">
<div><img class="border-ra" src="../素材/img/hot/rabbitmq.jpeg" width="300px" height="200px"></div>
<div class="txt">工业级别圣诞节撒覅偶就佛法撒旦飞机欧萨金额为</div>
<div class="txt">
<div class="fl">级别:高级</div>
<div class="fr">¥1333</div>
</div>
</div>
</div>
<div>
<div class="tp01">
<div><img class="border-ra1" src="../素材/img/hot/alibabacloud.jpg" width="300px" height="200px"></div>
<div class="txt1">工业级别圣诞节撒覅偶就佛法撒旦飞机欧萨金额为</div>
<div class="txt1">
<div class="fl">级别:高级</div>
<div class="fr">¥1333</div>
</div>
</div>
<div class="tp02-1">
<div><img class="border-ra" src="../素材/img/hot/ssm.png" width="300px" height="200px"></div>
<div class="txt">工业级别圣诞节撒覅偶就佛法撒旦飞机欧萨金额为</div>
<div class="txt">
<div class="fl">级别:高级</div>
<div class="fr">¥1333</div>
</div>
</div>
</div>
<div>
<div class="tp01">
<div><img class="border-ra1" src="../素材/img/new/xzt.png" width="300px" height="200px"></div>
<div class="txt1">工业级别圣诞节撒覅偶就佛法撒旦飞机欧萨金额为</div>
<div class="txt1">
<div class="fl">级别:高级</div>
<div class="fr">¥1333</div>
</div>
</div>
<div class="tp02-1">
<div><img class="border-ra" src="../素材/img/new/zt.jpeg" width="300px" height="200px"></div>
<div class="txt">工业级别圣诞节撒覅偶就佛法撒旦飞机欧萨金额为</div>
<div class="txt">
<div class="fl">级别:高级</div>
<div class="fr">¥1333</div>
</div>
</div>
</div>
<div>
<div class="tp01">
<div><img class="border-ra1" src="../素材/img/new/kafka.png" width="300px" height="200px"></div>
<div class="txt1">工业级别圣诞节撒覅偶就佛法撒旦飞机欧萨金额为</div>
<div class="txt1">
<div class="fl">级别:高级</div>
<div class="fr">¥1333</div>
</div>
</div>
<div class="tp02-1">
<div><img class="border-ra" src="../素材/img/new/cover.jpeg" width="300px" height="200px"></div>
<div class="txt">工业级别圣诞节撒覅偶就佛法撒旦飞机欧萨金额为</div>
<div class="txt">
<div class="fl">级别:高级</div>
<div class="fr">¥1333</div>
</div>
</div>
</div>
<div>
<div class="tp01">
<div><img class="border-ra1" src="../素材/img/new/gw-ms.png" width="300px" height="200px"></div>
<div class="txt1">工业级别圣诞节撒覅偶就佛法撒旦飞机欧萨金额为</div>
<div class="txt1">
<div class="fl">级别:高级</div>
<div class="fr">¥1333</div>
</div>
</div>
<div class="tp02-1">
<div><img class="border-ra" src="../素材/img/new/zt-rabbitmq.jpeg" width="300px" height="200px"></div>
<div class="txt">工业级别圣诞节撒覅偶就佛法撒旦飞机欧萨金额为</div>
<div class="txt">
<div class="fl">级别:高级</div>
<div class="fr">¥1333</div>
</div>
</div>
</div>
<div>
<div class="tp01">
<div><img class="border-ra1" src="../素材/img/new/58-sjms.jpg" width="300px" height="200px"></div>
<div class="txt1">工业级别圣诞节撒覅偶就佛法撒旦飞机欧萨金额为</div>
<div class="txt1">
<div class="fl">级别:高级</div>
<div class="fr">¥1333</div>
</div>
</div>
<div class="tp02-1">
<div><img class="border-ra" src="../素材/img/new/55.jpeg" width="300px" height="200px"></div>
<div class="txt">工业级别圣诞节撒覅偶就佛法撒旦飞机欧萨金额为</div>
<div class="txt">
<div class="fl">级别:高级</div>
<div class="fr">¥1333</div>
</div>
</div>
</div>
</div>
<div class="six center_page">
<div class="center">
<div>
<a href="#"><img src="../素材/img/footer/home.jpg">
<p>主页
</a>
</div>
<div>
<a href="#"><img src="../素材/img/footer/vedio.jpg">
<p>视频列表
</a>
</div>
<div>
<a href="#"><img src="../素材/img/footer/study.jpg">
<p>我的学习
</a>
</div>
<div> <a href="#"><img src="../素材/img/footer/personal.jpg">
<p>个人中心</p>
</a>
</div>
</div>
</div>
</body>
</html>
*{
padding: 0;
margin: 0;
}
.center_page{
margin:0 auto;
overflow: hidden;
}
.one{
width: 800px;
height: 40px;
}
.one-left{
float: left;
margin-top: 2px;
margin-bottom: 4px;
margin-left: 20px;
}
.one-left01{
float: left;
margin-left: 511px;
margin-top: 10px
}
.one-right{
float: right;
margin-right: 120px;
}
.user{
margin-right: 33px;
margin-top: 7px;
float:right
}
.two{
width: 800px;
height: 300px;
}
.three{
width: 800px;
height: 240px;
background-color: rgb(102, 50, 50);
}
.four{
width: 800px;
}
.img01{
float: left;
}
.text01{
float: left;
}
.hot{
margin-left: 30px;
margin-top: 10px;
}
.tp01{
float: left;
margin-top: 35px;
}
.tp02{
float: left;
margin-top: 35px;
}
.border-ra{
border-radius: 10px;
margin-left: -60px;
}
.border-ra1{
border-radius: 10px;
margin-left: 54px;
}
.txt1{
width: 300px;
line-height: 30px;
margin-left: 54px;
}
.txt{
width: 300px;
line-height: 30px;
margin-left: -60px;
}
.fl{
float: left;
}
.fr{
float: right;
color: red;
}
.tp02-1{
float: right;
margin-right:50px ;
margin-top: 35px;
}
.five{
width: 800px;
}
.six{
width: 800px;
height: 80px;
}
.center{
margin: 0 auto;
}
.center>div{
float: left;
margin: 30px 10px 10px 125px;
}
a{
text-decoration: none;
color: black;
}
a:hover{
color: aquamarine;
}
|