<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>格子布局</title>
<style>
#t div{
width: 33.33%;
height: 200px;
float: left;
}
#t1{
background: red;
}
#t2{
background: blue;
}
#t3{
background: green;
}
#m div{
width: 50%;
height: 200px;
background: yellow;
float: left;
}
#f div{
width: 33.33%;
height: 200px;
background: orange;
float: left;
}
</style>
</head>
<body>
<div id="t">
<div id="t1">t1</div>
<div id="t2">t2</div>
<div id="t3">t3</div>
</div>
<div id="m">
<div id="m1">m1</div>
<div id="m2">m2</div>
</div>
<div id="f">
<div id="f1">f1</div>
<div id="f2">f2</div>
<div id="f3">f3</div>
</div>
</body>
</html>
007格子布局
最新推荐文章于 2023-08-08 22:01:05 发布