图片上下水平居中
今天碰上图片上线水平居中这个问题,在网上看了很多方法,都比较复杂最后用了这个方法简单有效,兼容性又好。哈哈。
<table>
<tr>
<td style="height:500px;width:500px;text-align:center;vertical-align:middle;">
<a href="http://www.dotcoo.com/">
<img src="http://www.dotcoo.com/content/uploadfile/201010/b9939b823ce36d6a7eec7b1bf9bb5ca120101003160521.png" style="border:none;">
</a>
</td>
</td>
</table>