【CSS】三栏布局
作者:互联网
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
*{
margin: 0;
padding: 0;
}
html,body{
height: 100%;
}
.left,.right{
width: 200px;
height: 100%;
}
.left{
background: #3f3f40;
float: left;
}
.right{
background: #3f3f40;
float: right;
}
.center{
width: calc(100% - 400px);
height: 100%;
background: #ccc;
float: left;
}
</style>
</head>
<body>
<div class="left"></div>
<div class="right"></div>
<div class="center"></div>
</body>
</html>
标签:right,background,float,100%,布局,height,三栏,CSS,left 来源: https://www.cnblogs.com/HGNET/p/16208211.html