如何给定html代码,让这些代码以网页的形式显示在出来?
高手帮忙,急用,在线等

解决方案 »

  1.   

    webbrowser.Document.write "html代码"
      

  2.   

    webbrowser.Document.innerHtml="给定html代码"
      

  3.   

    少了一些 :PPrivate Sub Form_Load()
        WebBrowser1.Navigate "about:blank"
        
        WebBrowser1.Document.body.innerhtml = "<B>Strong Lxcc</B>"
    End Sub
      

  4.   

    innerhtml  只能修改 已经存在的网页
    最好使用webbrowser1.Document.write譬如:
    Private Sub Command1_Click()
        WebBrowser1.Navigate "about:blank"
        WebBrowser1.Document.write "<html><h1>HELLO</h1></html>"'如果换成innerhtml 就出错
    End Sub