转自:http://www.axfly.com/article.asp?id=265
<html>
<head>
<style type="text/css">
body {
text-align: center;
}
#wrapper{
width: 53%;
border: thin solid #666666;
Margin-Right: auto;
Margin-Left: auto;
}
</style>
</head>
<body>
<div id="wrapper">
Div Center
</div>
</body>
</html>
IE居中:外层CSS:Text-Align:center;
firefox居中:内层css:Margin-Right: auto; Margin-Left: auto;