7,763
社区成员
发帖
与我相关
我的任务
分享
Private Sub WebBrowser1_NavigateComplete2(ByVal pDisp As Object, URL As Variant)
'MsgBox WebBrowser1.Height
'WebBrowser1.Width = WebBrowser1.Document.scrollWidth
'WebBrowser1.Height = WebBrowser1.Document.Height
If (TypeOf webborwse1.Document Is MSHTML.HTMLDocument) Then
Dim M_Dom As MSHTML.HTMLDocument
Set M_Dom = WebBrowser1.Document
Me.Width = M_Dom.body.offsetWidth * 15
Me.Height = M_Dom.body.offsetHeight * 15
WebBrowser1.Width = Me.Width
WebBrowser1.Height = Me.Height
End If
aa = False
Me.Show
End Sub