<td><div style="overflow:hidden;"><img src="ice.jpg" width="1000" height="1000"/></div></td>

解决方案 »

  1.   

    <body>
    <table><tr><td style="background-color:red;">
    <img src='1.jpg'>
    </td></tr></table>
    <input type=button value='改变大小' onclick='change()'>
    </body>
    <script>
    function change()
    {
    var newWidth='100px';
    var img=document.getElementsByTagName('img')[0];
    document.getElementsByTagName('table')[0].style.tableLayout='fixed';
    img.parentNode.style.width=newWidth;
    img.parentNode.style.height=newWidth;}
    </script>
      

  2.   

    稻草人大哥这种是可以的啊<table border=1>
    <tr>
    <td height="500" width="200"><div style="overflow:hidden;"><img src="ge5.jpg" width="50" height="50"/></div></td>
    </tr>
    </table>