<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
.tb{
width: 970px;
height: 590px;
}
*{
margin: 0 auto;
padding: 0px;
}
.oiv1{
width: 970px;
height: 103px;
}
.oiv2{
margin-top: 10px;
}
.oiv3{
width: 310px;
height: 435px;
background-color: darkorange;
float: left;
}
.qw{
float: right;
margin-left: 10px;
}
.oiv4{
width: 190px;
height: 400px;
float: right;
background-color: violet;
}
.ovi5{
width: 450px;
height: 400px;
float: left;
}
.oiv6{
width: 650px;
height: 25px;
background-color: forestgreen;
margin-top: 410px;
}
.oiv7{
height: 35px;
margin-top: 455px;
background-color: #380cb0;
}
.box1{
width: 277px;
height: 103px;
background-color: red;
float: left;
}
.box2{
float: right;
}
.box3{
height: 240px;
background-color: cornflowerblue;
}
.box4{
height: 110px;
margin-top: 10px;
background-color: cornflowerblue;
}
.box5{
height: 30px;
margin-top: 10px;
background-color: cornflowerblue;
}
.z1{
width: 137px;
height: 49px;
background-color: chartreuse;
margin-right: 0px;
margin-bottom: 8px;
}
.z2{
width: 679px;
height: 46px;
background-color: chartreuse;
}
</style>
</head>
<body>
<div class="tb">
<div class="oiv1">
<div class="box1"></div>
<div class="box2">
<div class="z1"></div>
<div class="z2"></div>
</div>
</div>
<div class="oiv2">
<div class="oiv3"></div>
<div class="qw">
<div class="oiv4"></div>
<div class="ovi5">
<div class="box3"></div>
<div class="box4"></div>
<div class="box5"></div>
</div>
<div class="oiv6"></div>
</div>
</div>
<div class="oiv7"></div>
</div>![顶顶顶顶](h111ttps://img-blog.csdnimg.cn/20190226153822552.png?x-oss-111process=image/watermark,type_ZmFuZ3poZW511naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl80MzY5MzIxNg==,size_16,color_FFFFFF,t_70)
</body>
</html>!
网页布局小练习
最新推荐文章于 2024-03-13 14:04:42 发布