Foxtable(狐表)用户栏目专家坐堂 → [求助]ADDFOOT居中


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

主题:[求助]ADDFOOT居中

美女呀,离线,留言给我吧!
OKK
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:一尾狐 帖子:407 积分:4268 威望:0 精华:0 注册:2016/11/22 19:30:00
[求助]ADDFOOT居中  发帖心情 Post By:2018/12/21 14:23:00 [只看该作者]




        wb.AddPageTitle("page1","bp1","","")
        With wb.AddPanelGroup("page1","pg1","")
        With .Add("pn2","","","")
           .AddFoot("<div align='center'><a href='" & "www.baidu.com" & "'>打开百度</a></div>")
        End With
        End With





        wb.AddPageTitle("page1","bp1","","")
        With wb.AddPanelGroup("page1","pg1","")
        With .Add("pn2","","","")
           .AddFoot("<div style='text-align:center'><a style='text-align:center' href='" & "www.baidu.com" & "'>打开百度</a></div>")
        End With
        End With


打开百度四个字无法居中,一直在显示在最左边

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


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2018/12/21 15:41:00 [只看该作者]

参考代码

 

Select Case e.Path
    Case "test.htm", ""
        Dim wb As New WeUI
        wb.AddPageTitle("","bp1","","")
        With wb.AddPanelGroup("","pg1","")
            With .Add("pn2","","","")
                .AddFoot("<div align='center'><a href='" & "www.baidu.com" & "'>打开百度</a></div>")
            End With
        End With
        wb.InsertHTML("<style>.weui_media_box.weui_media_text .weui_media_info_meta{float: none;}</style>")
        e.WriteString(wb.Build) '生成网页
End Select


 回到顶部
美女呀,离线,留言给我吧!
OKK
  3楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:一尾狐 帖子:407 积分:4268 威望:0 精华:0 注册:2016/11/22 19:30:00
  发帖心情 Post By:2018/12/21 15:56:00 [只看该作者]

可以了,谢谢

 回到顶部