<style type="text/css">
*{
margin: 0;
padding: 0;
}
html,body{
height: 100%;
}
body{
display: flex;
flex-direction: column;
}
.header{
height: 100px;
background: #666;
}
.main{
background: #eee;
flex: 1;
display: flex;
}
.left{
width: 100px;
background: #f00;
}
.center{
background: #0f0;
flex: 1;
}
.right{
width: 100px;
background: #00f;
}
.footer{
height: 100px;
background: #666;
}
</style>
</head>
<body>
<div class="header">header</div>
<div class="main">
<div class="left">left</div>
<div class="center">center</div>
<div class="right">right</div>
</div>
<div class="footer">footer</div>
</body>
07-12
07-12
07-12
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交