开发者

C# set css to a System.windows.forms.webBrowser

开发者 https://www.devze.com 2023-03-05 16:50 出处:网络
Is it possible to set css to the webbrowser? If yes, than how Can I do 开发者_开发知识库this?

Is it possible to set css to the webbrowser? If yes, than how Can I do 开发者_开发知识库this?

Let's say I have a class with 2 properties:

public String Css

and public XElement Body

I want to bind the body to a webbrowser and set the css of that webbrowser.

Is this possible and how should I do this?


You can assemble a string containing the complete HTML with a <style> tag, then set the DocumentText property to that string.

0

精彩评论

暂无评论...
验证码 换一张
取 消