怎么在表外面套一个正方形的框
   以表格外边框为准!<table id="mytable" align="center" cellspacing="0" summary="The technical specifications of the Apple PowerMac G5 series" >
  <tr>
      <td></td>
      <td></td>
  </tr>
  <tr>
      <td></td>
      <td></td>
  </tr>
  <tr>
      <td></td>
      <td></td>
  </tr>
</table>

解决方案 »

  1.   


    <div style="border:1px solid #ccc;padding:10px;">
    <table id="mytable" align="center" cellspacing="0" summary="The technical specifications of the Apple PowerMac G5 series" >
      <tr>
          <td></td>
          <td></td>
      </tr>
      <tr>
          <td></td>
          <td></td>
      </tr>
      <tr>
          <td></td>
          <td></td>
      </tr>
    </table></div>
      

  2.   

    再 把div的宽高设置相等就可以了哦
      

  3.   


    <div style="border:2px solid #ccc;padding:10px;width:700;">
      

  4.   

    你将DIV的Padding属性设为0就,将Table的Margin属性设为0,这样就是你想要的效果了
      

  5.   

    不用加div 改变一下td的样式就可以
    <head>
    <style type="text/css">
    td{
    border:0;
    }</style>
    </head><body>
    <table id="mytable" align="center" cellspacing="0" border="1" width="200px">
      <tr>
          <td>555</td>
          <td>555</td>
      </tr>
      <tr>
          <td>555</td>
          <td>555</td>
      </tr>
      <tr>
          <td>555</td>
          <td>555</td>
      </tr>
    </table>
    </body>
      

  6.   

    <table style="border:1px solid red;">
      

  7.   

    <table style="border:1px solid #ccc;" >
      <tr>
          <td></td>
          <td></td>
      </tr>
    </table>