<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<style>
*{
margin:0 ;
padding: 0;
}
.nav{
display: flex;
align-items: center;
background: black;
color:white;
height: 35px;
line-height: 35px;
}
.item{
padding: 0 20px;
}
.item:hover{
background-color: teal;
}
.section{
display: flex;
align-items: flex-start;
}
.set_left{
width:30%;
}
.set_left .poiont{
height:35px;
line-height: 35px;
height: 35px;
background-color: #e2e2e2;
margin:5px;
padding:0px 10px;
}
.set_left .pionhover{
background-color: blue;
color: white;
}
.set_right{
width:70%;
margin:5px;
}
.set_right>div:first-child{
background-color: blue;
text-align: center;
font-size: 28px;
color: white;
line-height: 115px;
height: 115px;
}
.text >h3{
font-weight: bold;
font-size: 30px;
line-height: 50px;
}
.text>div{
line-height: 35px;
word-wrap:break-word;
width: 100%;
}
.footer{
background-color: black;
font-size: 28px;
color: white;
height: 90px;
line-height: 90px;
padding: 0 8px;
}
</style>
<body>
<div class="">
<div class="nav">
<div class="item">item</div>
<div class="item">item</div>
<div class="item">item</div>
<div class="item">item</div>
</div>
<div class="section">
<div class="set_left">
<div class="poiont">Then</div>
<div class="poiont pionhover">Then</div>
<div class="poiont ">Then</div>
<div class="poiont">Then</div>
<div class="poiont">Then</div>
<div class="poiont">Then</div>
<div class="poiont">Then</div>
</div>
<div class="set_right">
<div>THen city</div>
<div class="text">
<h3>Chania</h3>
<div>dvbsodivhegpvdegpvdsojvsdpvjsdefiwe0ikfwe0ikp,kegpvdsojvsdpvjsdefiwe0ikfwe0ikp,kegpvdsojvsdpvjsdefiwe0ikfwe0ikp,kegpvdsojvsdpvjsdefiwe0ikfwe0ikp,ksojvsdpvjsdefiwe0ikfwe0ikp,k</div>
</div>
</div>
</div>
<div class="footer">
底部文本
</div>
</div>
</body>
</html>
html+css布局
最新推荐文章于 2023-08-04 12:41:52 发布