以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  webbrowser怎么居中显示图片  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=174133)

--  作者:yifan3429
--  发布时间:2022/1/3 17:14:00
--  webbrowser怎么居中显示图片
Dim brw As WinForm.WebBrowser = Forms("家具产品").Controls("WebBrowser1")
    brw.Address = r("商品图片")
    Dim web = Forms("家具产品").controls("webbrowser1").basecontrol
    web.documenttext = "<html><body><img width=\'480px\' height=\'480px\' src=\'" & r("商品图片") & "\' /></body></html>"


怎么居中显示

--  作者:有点蓝
--  发布时间:2022/1/3 21:16:00
--  
https://www.baidu.com/baidu?ie=UTF-8&word=css%20%E5%B1%85%E4%B8%AD&tn=maxco3_dg&ch=1

https://www.w3school.com.cn/css/css_align.asp

web.documenttext = "<html><body><img style=\'display: block;  margin-left: auto;  margin-right: auto;\' width=\'480px\' height=\'480px\' src=\'" & r("商品图片") & "\' /></body></html>"