我有這一塊的HTML代碼的中心:對齊一個div水平,以
<div id="main" style=" margin:0 auto; ">
<div style="float: left">
<a style="display: block" href="#"><img src="test.gif"></a>
<a style="display: block" href="#"><img src="test.gif"></a>
<a style="display: block" href="#"><img src="test.gif"></a>
</div>
<div style="float: left">
<a style="display: block;" href="#"><img src="ursus.gif"></a>
</div>
<div style="float: left">
<a style="display: block" href="#"><img src="test.gif"></a>
<a style="display: block" href="#"><img src="test.gif"></a>
<a style="display: block" href="#"><img src="test.gif"></a>
</div>
</div>
而且我希望#main div來在頁面的中心對齊。我該怎麼做?謝謝!
http://stackoverflow.com/questions/953918/how-to-align-a-div-to-the-middle-of-the-page – webKite