Foxtable(狐表)用户栏目专家坐堂 → HTML中ID和标签如何设成变量?


  共有2177人关注过本帖树形打印复制链接

主题:HTML中ID和标签如何设成变量?

帅哥哟,离线,有人找我吗?
有点甜
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2018/3/21 17:13:00 [显示全部帖子]

Select Case e.Path
    Case "test.htm", ""
        Dim wb As New WeUI
       
        wb.AddPageTitle("","ph1","Progress")
        For i As Integer = 1 To 5
            wb.AddProgress("","pgb" & i ,True,50)
        Next
        Dim str = wb.Build
        For i As Integer = 1 To 5
            str = str.replace("<div class='weui_progress' name='pgb" & i & "' id='pgb" & i & "'>" & chr(13) & chr(10) & " <div class='weui_progress_bar'><div class='weui_progress_inner_bar' style='width:50%;'>","<div class='weui_progress' name='pgb" & i & "' id='pgb" & i & "'>" & vbcrlf & " <div style='height:30px' class='weui_progress_bar'><div class='weui_progress_inner_bar' style='width:50%;'><label>合同" & i & ":</label>")
        Next

        e.WriteString(str)
End Select


 回到顶部
帅哥哟,离线,有人找我吗?
有点甜
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2018/3/22 16:36:00 [显示全部帖子]

把红色代码改一下

 

str = str.replace("<div class='weui_progress' name='pgb" & i & "' id='pgb" & i & "'>" & chr(13) & chr(10) & " <div class='weui_progress_bar'><div class='weui_progress_inner_bar' style='width:" & drs(i-1)("progress") & "%;'>","<div class='weui_progress' name='pgb" & i & "' id='pgb" & i & "'>" & vbcrlf & " <div style='height:30px' class='weui_progress_bar'><div class='weui_progress_inner_bar' style='width:" & drs(i-1)("progress") & "%;'><label>" & drs(i-1)("合同简称") & "</label>")


 回到顶部