以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- AppendHTML设置buton背景图片问题 (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=171189) |
-- 作者:sunion0769 -- 发布时间:2021/8/20 21:30:00 -- AppendHTML设置buton背景图片问题 先ADD一个按钮,然后用这个代码设置按钮背景图片,结果无效,不知道哪里错了? font-size: 30px; text-align:left;background-image:url(./images/001.jpg): |
-- 作者:有点蓝 -- 发布时间:2021/8/21 9:18:00 -- 测试没有问题 Select Case e.Path Case "test.htm" Dim wb As New weui wb.AddForm("","form1","test.htm") With wb.AddButtonGroup("form1","btg1",True) \'垂直排列 .Add("btn1", "按钮") End With wb.AppendHTML("<style>#btn1{font-size: 30px; text-align:left;background-image:url(./images/001.jpg)}</style>") e.WriteString(wb.Build) \'生成网页 End Select |