1 回答

TA貢獻(xiàn)10條經(jīng)驗 獲得超3個贊
我也剛學(xué)前端不久 ?這個方法簡單但是可以實現(xiàn)
<!DOCTYPE html>
<html>
<head>
? ? <meta charset="utf-8">
? ? <meta http-equiv="X-UA-Compatible" content="IE=edge">
? ? <title>image</title>
<style>
.div0{
width: 1000px;
margin: 0 auto;
}
.div1{
width: 100%;
height: 40px;
background-color: red;
}
.div2{
margin-top: 5px;
float: left;
width: 51%;
height: 40px;
background-color: blue;
}
.div3{
float: right;
width: 40%;
height: 160px;
background-color: black;
margin-top: -265px;
}
</style>
</head>
<body>
<div?class="div0">
????<div?class="div1"></div>
????<div?class="div2"></div>
????<div?class="div2"></div>
????<div?class="div2"></div>
????<div?class="div2"></div>
????<div?class="div2"></div>
? ? <div?class="div3"></div>
</div>
</body>
</html>
- 1 回答
- 2 關(guān)注
- 1231 瀏覽
添加回答
舉報