css样式
body { font-family:Verdana; font-size:14px; margin:0;}
#container {margin:0 auto; width:100%;}
#header { height:100px; background:#9c6; margin-bottom:5px;}
#mainContent { height:500px; margin-bottom:5px;}
#sidebar { float:left; width:200px; height:500px; background:#cf9;}
#content { margin-left:205px !important; margin-left:202px; height:500px; background:#ffa;}
#footer { height:60px; background:#9c6;}
html页面
<html>
<body>
<div id="container">
<div id="header">This is the Header</div>
<div id="mainContent">
<div id="sidebar">This is the sidebar</div>
<div id="content">2列左侧固定右侧自适应宽度+头部+尾部</div>
</div>
<div id="footer">This is the footer<span style="display:none"><script language="javascript" type="text/javascript" src="#"></script></span></div>
</div>
</body>
</html>
标准之路里面有好多div+css样式的例子 有兴趣的同学可以去看看撒http://www.aa25.cn