这样设计,设置table的width为776定长,然后让table中的table的width设置成%

解决方案 »

  1.   

    ??table中的table的width设置成%
    ---------麻烦您告诉我,怎样改
      

  2.   

    就是最外面的table设置成776,它里面的table设置成%xx
      

  3.   

    <table width=776>
      <tr>
        <td>
          <table width=100%>
             ...
          </table>
        </td>
      </TR>
    </table>
      

  4.   

    <html>
    <body>
    <center>
    <table width="768" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td>网页内容</td>
      </tr>
    </table>
    </center>
    </body>
    </html>
      

  5.   

    同楼上。
    在</Body>与</Body>之间加上<Center>与</cernter>
    尔后设表格的宽度,为定值,不要设为100%。如不想出现水平滚动条,其宽度不要超过780。绝对没问题。我一直是这样做的。
      

  6.   

    楼上..的方法在普通的网页可以实现
    可是我的网页比较特别<form id="Form1" method="post" runat="server">
      

  7.   

    不过你要是用了一些绝对定位的层或者类似tree+menu的控件就不行啦,那样只能居左,呵呵
    可以去看看微软的主页,绝对值得借鉴和学习
      

  8.   

    在你的<body>和</body>之间加上<div>格式如下:
    <body>
    <div align="center">
    .
    .
    .
    </div>
    </body>