<table>
<tr align=center><td width=80 height=80><img src="a.gif" width=79 height=79></td></tr>
</table>出现的图片没有居中!!!!!!谁能告诉我如何让图片居中????

解决方案 »

  1.   

    我这里没有问题:
    代码如下:
    <table width="543">
    <tr align="center"><td><img src="down4.gif" width=16 height=27></td>
    </tr>
    </table>
      

  2.   

    或者这样:
    <table width="543">
    <tr ><td><div align="center"><img src="down4.gif" width=16 height=27></div></td>
    </tr>
    </table>
      

  3.   

    同意楼上vvordsman() 第二种~
      

  4.   

    <table width="100%">
    <tr>
    <td align="center"><img src="200492458116845.jpg" width=79 height=79>
    </td>
    </tr>
    </table>
      

  5.   

    <td align="center">"><img src="200492458116845.jpg" width=79 height=79></td>
      

  6.   

    <td>是定宽和高的!<td width=90 height=90>....</td> 各位再试试看!   以上方法我都试过的不行!
      

  7.   

    td定宽高?那图片干吗还有宽高????你的意思就是td居中,不是img居中?...
      

  8.   

    <table width="100%">
    <tr align="center">
    <td></td>
    <td align="center" width="90" height="90"><img src="200492458116845.jpg" width=79 height=79>
    </td>
    <td></td>
    </tr>
    </table>
      

  9.   

    <table width="100%">
    <tr align="center">
    <td align="center">
    <table>
    <tr>
    <td width="90" height="90">
    <img src="200492458116845.jpg" width=79 height=79>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
      

  10.   

    那个Sayai521()也说对了,还有错的?
      

  11.   

    你最后用的是哪一种方面,我这里用,
    <tr align="center">或
    <div align="center">都对的。
      

  12.   

    <table width="275" height="227" border="1">
      <tr>
        <td><div align="center"><img ="a.gif" width=79 height=79></div></td>
      </tr>
    </table>
      

  13.   

    align='center'
    在tr、td、div里面都是可行的