0
我只是想中心在页面上的div。它工作在铬,但在IE的股利仍是左:为什么这个html/css不能在ie中工作?
<html>
<head></head>
<body>
<div id="container" style="margin:0 auto; width:200px;">
test
</div>
</body>
</html>
我读过的一切都表示,到中心块元素,只需添加margin:0 auto
并指定宽度,所以我不知道为什么这不起作用。
我测试的IE 7.0.5730
就是这样..谢谢! – hhj 2010-06-08 16:19:37