Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Tue, 6 May 2008 08:06:01 -0700,    group: microsoft.public.inetsdk.programming.webbrowser_ctl        back       


MSHTML/WebBrowser + CSS   
Is it possible to access the linked css data of a web page using mshtml or 
the WebBrowser object?  So if I have a css file with:

.redthing
{
color:red;
}

and something in the HTML file like:

<div class="redthing">
Do any mshtml objects integrate the css data so I can see that color=red for 
this element?

Thanks in advance.
date: Tue, 6 May 2008 08:06:01 -0700   author:   Nate Blankton

Re: MSHTML/WebBrowser + CSS   
"Nate Blankton"  wrote in
message news:5DCD2965-CBE7-4F57-AC89-F7F9707E89A4@microsoft.com
> Is it possible to access the linked css data of a web page using
> mshtml or the WebBrowser object?  So if I have a css file with:
>
> .redthing
> {
> color:red;
> }
>
> and something in the HTML file like:
>
> <div class="redthing">
> Do any mshtml objects integrate the css data so I can see that
> color=red for this element?

element.currentStyle.color
-- 
With best wishes,
    Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not 
necessarily a good idea. It is hard to be sure where they are going to 
land, and it could be dangerous sitting under them as they fly 
overhead. -- RFC 1925
date: Tue, 6 May 2008 12:59:56 -0400   author:   Igor Tandetnik

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us