#auto_image img{ max-width:460px;autoimg:expression(οnlοad=function(){this.style.width=(this.offsetWidth > 460)?"460px":"auto"});}
</style>
<table>
<tr>
<td id="auto_img"><img src="你要使其自适应大小的图片地址" /></td>
</tr>
</table>
原文链接: http://blog.csdn.net/vince6799/article/details/1755126
转载于:https://my.oschina.net/chen106106/blog/45949