以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- [求助]如何设置List徽章的颜色 (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=187020) |
-- 作者:2900819580 -- 发布时间:2023/6/15 13:48:00 -- [求助]如何设置List徽章的颜色 With wb.AddListGroup("", "lsg4","增加图标的列表") .Add("ls7","新浪主页", "sina.com", "http://www.sina.com.cn", "./images/sina.png") .Add("ls8","网易主页", "163.com", "http://www.163.com", "./images/163.png").Badge="新" End With 如上代码增加的徽章是红色的,我想让他变其它颜色可以吗? |
-- 作者:有点蓝 -- 发布时间:2023/6/15 13:53:00 -- http://www.foxtable.com/bbs/dispbbs.asp?BoardID=2&ID=125228&skin=0 http://www.foxtable.com/bbs/dispbbs.asp?BoardID=2&ID=170653&skin=0
|
-- 作者:2900819580 -- 发布时间:2023/6/15 14:58:00 -- .Add("ls8", "网易主页", "163.com", "http://www.163.com", "./images/163.png").Badge = "<span class=""weui-badge"" style=""background-color:blue"">" & "新" & "</span > " 老师,这样设置,底色是红色,中间有层蓝的,上面是白的,好怪。 [此贴子已经被作者于2023/6/15 15:02:38编辑过]
|
-- 作者:有点蓝 -- 发布时间:2023/6/15 15:08:00 -- With wb.AddListGroup("", "lsg4", "增加图标的列表") .Add("ls7", "新浪主页", "sina.com", "http://www.sina.com.cn", "./images/sina.png") .Add("ls8", "网易主页", "163.com", "http://www.163.com", "./images/163.png").Badge = "新" End With wb.AppendHTML("<style>#ls8 .weui-badge{background-color:blue !important}</style>", True) e.WriteString(wb.Build) End Select
|