为什么在firefox里
就偏了???
大猫钓鱼 2005-10-20 09:05:06 以前不用火狐的,今天把一个简单的div+css页面丢到firefox里一看怎么<div>就偏左了?
style.css里如下:
body {
border: 0px;
margin: 0px;
font: 12px 宋体,Verdana,Tahoma,sans-serif;
text-align: center;
/*网页背景图片居中*/
background: url("../Images/BgPic/Bg_Main_01.gif") repeat center;
}
#web-top-title{
margin:0px;
width:772px;
height:90px;
background-color:#696969;
clear:both;
}
下面是index.htm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html>
<head>
<link rel="Stylesheet" type="text/css" href="Style.css" />
</head>
<body>
<div id="web-top-title"></div>
</body>
</html>