<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<style>
*{
padding: 0;
margin: 0;
}
#container {
overflow: hidden;
}
#center {
float: left;
width: 100%;
height: 200px;
background: blue;
}
#left {
float: left;
width: 200px;
height: 200px;
margin-left: -100%;
background: yellow;
}
#right {
float: left;
width: 50px;
height: 200px;
margin-left: -50px;
background: pink;
}
.content {
margin: 0 50px 0 200px;
}
</style>
<body>
<div id="container">
<div id="center">
<div class="content">#center</div>
</div>
<div id="left">#left</div>
<div id="right">#right</div>
</div>
</body>
</html>
CSS三栏布局——双飞翼布局
最新推荐文章于 2024-08-07 17:18:04 发布