通过定位实现三列布局
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>三列布局(定位实现)</title>
<style type='text/css'>
*{
padding: 0;
margin: 0;
}
body{
/*position:relative;*/
/*min-width: 600px;*/
}
.left,.right{
width: 200px;
height: 100px;
background: pink;
}
.left{
position:absolute;
left: 0;
top: 0;
}
.right{
position:absolute;
right: 0;
top: 0;
}
.middle{
height: 100px;
background: skyblue;
padding: 0 200px;
}
</style>
</head>
<body>
<div class="left">left</div>
<div class="middle">middle</div>
<div class="right">right</div>
</body>
</html>