<html>
<head>
<style type="text/css">
div#container{width:500px}
div#header{background-color:#99bbff;width:500px;height:100px}
div#left{background-color:#88ddfa;height=300px;width:150px:float:left}
div#right{bakcground-color:#68ffff;width:350px:height=300px;float:left}
div#bottom{background-color:#25aaff;widht=500px:height=100px}
</style>
</head>
<body>
<div id="container">
<div id="header">
<h1>this is top<h1>
</div>
<div id="left">
<p>this is left</p>
</div>
<div id="right">
<p> this is right </p>
</div>
<div id ="bottom">
<p> this is bottom </p>
</div>
</div>
</body>
</html>
定义div样式的时候首先
div#left{background-color:#88ddfa;height=300px;width:150px:float:left}
div#right{bakcground-color:#68ffff;width:350px:height=300px;float:left}
布局设置