当前位置: 代码迷 >> ASP.NET >> htmltable.width的有关问题?
  详细解决方案

htmltable.width的有关问题?

热度:2629   发布时间:2013-02-26 00:00:00.0
htmltable.width的问题??
protected   void   Page_Load(object   sender,   EventArgs   e)
        {
      table1.Width   =   "100 ";
                table2.Width   =   (verygoodlen*100).ToString();
                table3.Width   =   (goodlen   *   100).ToString();
                table4.Width   =   (nomallen   *   100).ToString();
                table5.Width   =   (badlen   *   100).ToString();
}
怎么设都没用呢?HTMLtalbe的宽度还是老样子,没有改变.

------解决方案--------------------------------------------------------
呵呵,看到“style= "width: 0px;”你就会反过来知道怎么查源代码,这就是调试的威力。
  相关解决方案