首先先在PS中制作一个背景图:

<!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=utf-8" />
<title>添加边框</title>
<style type="text/css">
body{
font:12px/18px Arial;
margin:0;
}
#header,#footer{
background:#99ccff;
width:760px;
margin:0 auto;
}
h2{
margin:0;
padding:20px;
}
p{
padding:20px;
text-indent:2em;
margin:0;
}
#container{
background:url(bj1_760.gif);
position:relative;
width:760px;
margin:0 auto;
}
#navi{
width:200px;
position:absolute;
left:0px;
top:0px;
/*background:#99ffcc;*/
}
#content{
margin-right:200px;
margin-left:200px;
/*background:#ffcc66;*/
}
#side{
width:200px;
position:absolute;
right:0px;
top:0px;
/*background:#cc99ff;*/
}
</style>
</head>
<body>
<div id="header">
<h2>Page Header</h2>
</div>
<div id="container">
<div id="navi">
<h2>Navi Bar</h2>
<ul>
<li>Home</li>
</ul>
</div>
<div id="content">
<h2>Page Content</h2>
<p>随着经济飞速发展 近年来设计的概念已深入人心,越来越多的企业认识到,有了好的商品远远不够,还需要优秀的广告才能更好地产生效益。每年对平面设计、广告设计等设计类人才的需求一直非常大,广告设计类人才的缺口达数十万名。</p>
</div>
<div id="side">
<h2>Side Bar</h2>
<ul>
<li>Web Dev</li>
</ul>
</div>
</div>
<div id="footer">
<h2>Page Footer</h2>
</div>
</body>
</html>
效果如图所示:

浙公网安备 33010602011771号