<div id="wrapper">
<div id="content" style="background-color: white;">
...
</div>
</div>
#content{
float: left;
width: 540px;
padding: 30px 30px 0px 30px;
background-color:#19252f;
text-align: left;
min-height: 500px;
}
#wrapper {
margin: 0 auto;
width: 800px;
}
火狐看
的Internet Explorer 8的外观
你可以在网上发布你的代码,以便我可以看到它的工作? – Seth 2011-03-01 03:45:34
你的页面上有文档类型声明吗? – BoltClock 2011-03-01 03:47:10
@Seth:我忘记了允许您发布html和css代码并生成页面外观的网站。你能刷新我的记忆吗? @BoltClock:这是我的Doctype:'<!DOCTYPE html PUBLIC“ - // W3C // DTD XHTML 1.0 Strict // EN”“http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict。 dtd“>' – 2011-03-01 03:47:19