问全能选手们一个css+div的一个兼容性问题
<html lang="zh_CN">
<head>
<meta charset="UFT-8">
<title>sports league</title>
<link href="css/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="topCommercial"></div>
<div id="container">
<div id="logo"></div>
</div>
</body>
</html>
body,div,dl,dt,dd,ul,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,button,textarea,blockquote{
margin:0;padding:0;
text-align:center;
}
#topCommercial{
background-image:url(../images/topCommercial.png);
width:726px;
height:88px;
margin:auto;
padding:auto;
}
#container{
text-align:left;
background-image:url(../images/index_02.gif);
width:907px;
height:1515px;
margin:auto;
padding:auto;
border:1px solid red;
}
#logo{
background-image:url(../images/logo_03.gif);
width:317px;
height:35px;
margin:70px 0px 0px 50px;
}
关键的问题出在container的border 的问题 加上border 火狐没有问题 去掉了一个 就乱了,ie加不加都没问题,
有好心人帮我解答一下吗?
[解决办法]
http://topic.csdn.net/u/20120301/19/f4deb49a-dd1b-4890-b2e4-d999ef0bdf27.html