gpt4 book ai didi

c# - xulrunner,C# : how to change html?

转载 作者:太空宇宙 更新时间:2023-11-03 23:22:21 26 4
gpt4 key购买 nike

我将项目移至自定义 WebBrowser,并选择 XULRunner。我正在使用 XULRunner 33 和 GeckoFX 33。所以,我将它添加到项目中并对其进行初始化。

在我的程序中,我使用自定义的 html 场景,但我如何更改 html?WebBrowser 示例是:webBrowser1.DocumentText = "html code here";但是 XULRunner 只有 Document(只读)、DocumentTitle、DomDocument(也)、Text(不影响),我不能用它来更改 html。怎么可能?

最佳答案

Geckofx 33 有 LoadHtml 方法而不是 DocumentText。所以,例如:

geckoWebBrowser.LoadHtml("html code here", "url of a page here");

关于c# - xulrunner,C# : how to change html?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34981030/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com