扩展的EXWEUI就可以使用啊,我想WEUI应该也可以使用啊,老师帮忙看看。下面代码可以让两个加减控件显示在一行,所以我想输入框应该也可以。
Dim e As RequestEventArgs = args(0)
Dim wb As New weui
wb.AppendHTML("<link rel='stylesheet' href='./weui/exweui.css'/>",True)
wb.AppendHTML("<script src='./weui/exweui.js' ></script>")
'wb.AppendHTML("<style >#ipg1 .weui_cell_hd{display: none;}</style>")
wb.AppendHTML("<style >#ipg1 .weui_label{Width: 50px;}</style>")
wb.AppendHTML("<style >#ipg3 .weui_label{Width: 50px;}</style>")
wb.AddForm("","form1","test.htm")
With wb.AddTable("","Table1")
.head.AddRow("第一列","第二列")
Dim ipg As ExWeUI.ExInputGroup = ExWeUI.WebUI.AddInputGroup("","ipg1","")
Dim ipg2 As ExWeUI.ExInputGroup = ExWeUI.WebUI.AddInputGroup("","ipg3","")
With ipg.AddSpinner("sp01","数量")
.width=80
.Attribute = "style=""width:40px color:blue"""
End With
With ipg2.AddSpinner("sp02","价值")
.width=80
.Attribute = "style=""width:40px"""
End With
.body.AddRow(ipg.BuildHtml,ipg2.BuildHtml)
End With
wb.AppendHTML("<script>initExWeUI();</script>")
e.WriteString(wb.Build)