Div+css做了网页,ie可以,但firefox下却很乱

来源:百度知道 编辑:UC知道 时间:2024/09/22 23:27:33
body{
font-family: Arial,sans-serif;
color: #333333;
line-height: 1.166;
margin: 0px;
padding: 0px;
background-color:#E1F3FF;
background-image:url("qianyi/bg_body.gif");
background-repeat:repeat-x;

}
#top { width:933px; height:80px; margin:18px auto 0px auto;
background-image:url("qianyi/logo_index.png"); background-repeat:no-repeat}
#weblink{font-size:12px; color:#AFCEE3;float:right; margin:0px auto; width:300px; text-align:right; padding-right:165px}
#weblink a:link{color:#AFCEE3; text-decoration:none; text-align:center}
#weblink a:visited{color:#AFCEE3; text-decoration:none; text-align:center}
#weblink a:hover{ color:#E8F7FF;text-decoration:underline}
#daohang{ width:933px; height:31px; margin:0px auto; background-image:url("qianyi/bg_daohang.gif"); background-repeat:repeat-x}
#menu ul {clear:left;float:left;list-style:none;margin:5px 0px 0px 15px;width

慢慢改吧,ie和火狐有很多地方显示方式上是不同的,不是一个地方的问题。你可以看看哪里出了问题然后百度一下,找找他们的不同再修改。基本上你写css的时候注意点这些问题就没事了。

你贴CSS出来又不贴页面,谁知道你是怎么回事啊。

这个就是CSS兼容性的问题了。

css现在的浏览器兼容性确实很差,实在没办法你可以用css hack,推荐去CSS黑板报找下答案。

直接百度:CSS黑板报,第一个就是啦~祝你早日解决~!

兼容问题 自己慢慢调的

如果设了margin-left和margin-right的值的,火狐和ie肯定是会有问题的,ie会以双倍的距离显示,加个display:inline