老师,帮忙在看一下:
我把那段代码放在下面红色两个位置,字体大小都没有变化,放在AfterLoad事件里也不行
Dim f1 As String = ProjectPath & "Attachments\html\" & e.Node.text & ".htm"
Dim f2 As String = ProjectPath & "Attachments\html\" & e.Node.text & ".html"
Dim f3 As String = ProjectPath & "Attachments\html\" & e.Node.text & ".txt"
If FileSys.FileExists(f1) Then
e.Form.Controls("WebBrowser1").Address = f1
ElseIf FileSys.FileExists(f2) Then
e.Form.Controls("WebBrowser1").Address = f2
ElseIf FileSys.FileExists(f3) Then
Dim w As System.Windows.Forms.WebBrowser = e.Form.Controls("WebBrowser1").BaseControl
w.Document.body.style = "font-size: 30px;" e.Form.Controls("WebBrowser1").Address = f3
Dim w As System.Windows.Forms.WebBrowser = e.Form.Controls("WebBrowser1").BaseControl
w.Document.body.style = "font-size: 30px;"
End If