浏览器 兼容性 问题,是DIV+CSS布局的!

来源:百度知道 编辑:UC知道 时间:2024/05/25 08:52:50
为什么这段代码在FF浏览器中无发正确显示??
寻大虾帮忙看下!!!这里先说谢了!

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ddddddddddd</title>
<style type="text/css">
*{margin:0px;padding:0px;border:0px;}
body{width:960px;margin:auto;margin-left:auto;margin-left:auto; font:Arial, Helvetica, sans-serif}

a:link {color: #07519A; text-decoration: none }
a:visited {color: #07519A; text-decoration: none }
a:hover {color: #FF0000; text-decoration:none}
a:active {color: #07519A; text-decoration: none }
/*-----以上为初始化内容--*/
#top{height:70px; margin-top:0px; padding-top:0px; background-color:#6699FF;}
#two_menu{ height:20px; background-color:#A3C6E9;}
#C_left{ background-color:#C5E8BB; height:400px; width:600px; float:left;}
#C_right{ background-color:#FFCCCC; height:300px; float:right;clear:left;}
#bottom{ height:100px; background-color:

#C_left{ background-color:#C5E8BB; height:400px; width:600px; float:left;}
#C_right{ background-color:#FFCCCC; height:300px; float:right;}
#bottom{ height:100px; background-color:#95DFF2;float:left;clear:both;}

我就给你改了这3行,你要的效果已经出来了。
记住哦,放在右边的盒子,可不能clear:left,那样的话,左边就不会显示任何东西了,而且如果要放在底部的话,并且让他独自站一个底部,那就一定要clear:both;

如果发现ie跟ff效果不统一,那就要使用css hack。如果不明白的可以问我

问题就不具体看了

推荐两个开发CSS必备的调试工具

IE Developer 和FF FireBar

<div style=" clear:none;"></div>
这是啥意思。。你要清除浮动吗?
清除浮动应该是
<div style=" clear:both;"></div>