<table id=mm>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table><script>
document.all.mm.width=100;
</script>

解决方案 »

  1.   

    <script>
    function setwidth(w)
    {
    document.getElementById("tbl").width=w;
    }
    </script>
    <table width="100" id="tbl">
      <tr>
        <td>&nbsp;</td>
      </tr>
    </table>
    <input type=button value=set onclick="setwidth(200)">
      

  2.   

    meizz(梅花雪) 里的代码不是标准的
      

  3.   

    寫asp文件啦
    <%
      var Width=100;
    %>
    <table width="<%=Width%>">
     <tr>
      <td></td>
     </tr>
    </table>