dom - css2 - get current css rules / sheets applied to a node

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vituko
    New Member
    • Dec 2006
    • 48

    dom - css2 - get current css rules / sheets applied to a node

    Hello, first I want to appologize, I'm spanish and my inglish is very bad, I hope anybody to understand me.

    So, I work with xml in an iframe, no xsl and no xhtml. There's no inline styles and I need to dinamically change them. So I need to navigate my stylesheets from javascript.

    I want to find which rules and sheets are applied to a node to change them automatically. Something that the dom inspector in firefox does. I've spend a lot of time and I found nothing.

    1. Changing attributes (class, for example) is not enough, I only know the values in running time.

    2. getComputedStyl e() gives me the current values, but I can't find where it found them.

    Any ideas?

    Thank you very much.
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    This is a very useful link on this topic.

    Comment

    Working...