两列布局key:float和margin。实现效果:左栏固定宽度右栏自适应宽度1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<html>
<head>
<meta charset="utf-8">
<title></title>
<style type="text/css" media="screen">
*{
margin:0;
padding:0;
font-family:"微软雅黑";
}
#aside{
width:200px;
height:500px;
background:green;
float:left;
}
#main{
height:500px;
margin-left:203px;
background:blue;
}
</style>
</head>
<body>
<aside id="aside">#aside</aside>
<main id="main">#main</main>
</body>
</html>
两列布局
双飞翼布局
三列布局
>