我想中心对齐(水平和垂直)在HTML和CSS的div框内的图像。我无法居中对齐它。这是我的下面的代码。需要居中对齐CSS中的图像
<div style="float:left;margin: 10px" >
<div style="border:1px solid gray;width: 60px;height: 60px;text-align:center;">
<img style="max-height: 60px;max-width: 60px;"
src="http://t1.gstatic.com/images?q=tbn:UnPJn535Xfha7M:http://gizmodo.com/assets/resources/2007/07/ipod_6gen_1.jpg"/>
</div>
</div>
图像越来越接近顶端。我尝试在img标签内使用vertical-align:middle,但它没用。
有人可以帮助我吗?谢谢。
链接到网站PLZ :),然后我可以看到概率。 – Younes 2010-03-03 10:02:39