<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<style type="text/css">
body{margin: 0px;}
#divLeft{width:100px;height:800px;float: left;margin:0px;background-color:#8ADEFF;}
#divCenter{width:100%;height:800px;margin:0px auto;background-color:#A4C8EE;}
#divRight{width:100px;height:800px;float: right;margin:0px;background-color:#FFFBEF;}
</style>
<title>无标题文档</title>
</head>
<body>
<div id="divLeft">
左边的
</div>
<div id="divRight">
右边的
</div>
<div id="divCenter">
中间
</div>
</body>
</html>
注:
1. 去掉右边的div即为左右布局;
2. 中间的div必须放在最后面.