日期:2014-05-17  浏览次数:20641 次

div+css布局代码编写 网站改版
网站首页(http://www.rs100.cn)  
用的是传统的表格布局,打开页面有明显的停顿  
现在准备改成用div+css布局  
但是我不会,谁会的帮忙写一下  
只写框架就行了  

框架图:http://www.rs100.cn/ti.jpg  

QQ:250494970   707378940  
E-mail:louvreliu@126.com

------解决方案--------------------
兼容IE6和FF了。

<!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 " />
<title> 无标题文档 </title>
<style type= "text/css ">
<!--
*{margin:0;padding:0;}
body,td,th { font-size: 12px;color:#fff;}
img{ border:0;}
li{ list-style:none;}
a{ font-size:12px;color;#666;text-decoration:none;}
a:hover{ color:#f60;text-decoration:underline;}
#top{ width:760px;height:100px;margin:0 auto;overflow:hidden;background:#f00;}
#bottom{ width:760px;height:90px;margin:0 auto;overflow:hidden;background:#f60;}

#main{ width:760px;margin:0 auto;overflow:hidden;}
.left{ width:150px;float:left;overflow:hidden;background:#000;}/*高度可以设,也可以让它自己延伸*/
.right{ width:610px;float:left;overflow:hidden;background:#079;}
.top2{ height:200px;color:#000;}
.index{height:500px;color:#f00;}
-->
</style> </head>

<body>
<div id= "top "> top.asp </div>

<div id= "main ">
<div class= "left "> left.asp </div>
<div class= "right "> <div class= "top2 "> top2.asp </div>
<div class= "index "> index.asp </div>
</div>
</div>

<div id= "bottom "> bottom.asp </div>
</body>
</html>