I want to build a lightweight (wysiwyg) css editor based on the WPF webbrowser control, so I need to be able to manipulate the css. I figure you can get the HtmlDOM from the Webbrowser.Document property, however i'm having some difficulty figuring out how to obtain and edit the document's css.
+1
A:
Enumerate each element and gets the style sheet property, then use IHTMLStyleSheet::cssText to get or set the css.
Sheng Jiang 蒋晟
2010-01-26 19:51:51