我有以下的CSS:圍繞一個div谷歌瀏覽器
html, body {
background-color:black;
font-family:"arial bold";
overflow:auto;
text-align: center;
}
div#content {
width:792px;
height:100%;
padding:0px;
}
div#header {
height:216px;
width:100%;
}
的HTML代碼,我已經是:
<html>
<head>
<title>
Think in a NEW BOX.
</title>
<link rel="stylesheet" type="text/css" href="styles/default.css" />
</head>
<body onload="">
<div id="content">
<div id="header">
<img src="images/title-1.png" /><img src="images/title-2a.png" /><img src="images/title-3.png" />
</div>
</div>
</body>
</html>
現在,這在IE的偉大工程。 div中心完美(標題)。然而,在谷歌瀏覽器中,div是左對齊的。我錯過了什麼嗎?
雖然它會讓IE不老。 – Quentin 2011-05-18 18:34:53