以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  [求助]隐藏控件  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=109709)

--  作者:blsu33
--  发布时间:2017/11/17 16:06:00
--  [求助]隐藏控件

老师,

想要隐藏一个控件,使其不显示出来,如何做到呢,是否如下都同样的写法?

 

  Dim sb As New StringBuilder
            sb.AppendLine("<form enctype=\'multipart/form-data\' action=\'saletj.htm\' method=\'post\' id=\'form1\' name=\'form1\'>")
            sb.AppendLine(
"
请输入要统计的年月:</br></br>")
            sb.AppendLine(
"<input name=\'tj\' id=\'tj\' value=\'
按年月统计\' hidden>") \'这个输入框不会显示,仅用于标记
            sb.AppendLine(
"
: < input type=\'number\' name=\'year\' id=\'year\' min=\'1999\' max=\'2018\'><br/><br/>")
            sb.AppendLine(
"
: < input type=\'number\' name=\'month\' id=\'month\' min=\'1\' max=\'12\'><br/><br/>")
            sb.AppendLine(
"<input Type=\'submit\' name=\'Sumbit\' id=\'Sumbit\' value=\'
开始统计\'>")
            sb.AppendLine("</form>")
            e.WriteString(sb.ToString)

 

如果是button,怎么写呢,其他控件也是这样吗

 

wb.AddForm("","form1","test.htm")
        With wb.AddButtonGroup("form1","btg1",True\'垂直排列
            .Add("btn1",
"
按钮",hidden)
            
End With

 



--  作者:有点甜
--  发布时间:2017/11/17 16:28:00
--  

 

.Add("btn1", "确定", "submit").Attribute="style=\'display:none\'"

 


--  作者:blsu33
--  发布时间:2017/11/30 16:05:00
--  

老师,

   哪里能找得到 Attribute 的所有属性便于查看参考。没有找到出处。


--  作者:有点蓝
--  发布时间:2017/11/30 16:55:00
--  
就是html的属性:http://www.w3school.com.cn/h.asp
--  作者:blsu33
--  发布时间:2017/11/30 17:45:00
--  
老师,
  这个网站在看,只是不知道怎么一次获得说有的属性,是哪一节;没找到搜索功能?

--  作者:有点甜
--  发布时间:2017/11/30 21:09:00
--  
以下是引用blsu33在2017/11/30 17:45:00的发言:
老师,
  这个网站在看,只是不知道怎么一次获得说有的属性,是哪一节;没找到搜索功能?

 

无法直接获得的。 http://www.w3school.com.cn/tags/html_ref_standardattributes.asp