how to get the css keys and values for any html tag

Posted by artsince on Stack Overflow See other posts from Stack Overflow or by artsince
Published on 2010-04-25T17:08:52Z Indexed on 2010/04/25 17:13 UTC
Read the original article Hit count: 195

Filed under:
|
|

I would like to dump all css key/value pairs for an html tag. In particular, I would like to learn the css properties for <audio> tag, so I can try to customize the look.

document.getElementById('myaudio').style returns a CSSStyleDeclaration object but length returns 0 and I cannot figure out to iterate over the key/value pairs.

Thank you

© Stack Overflow or respective owner

Related posts about html5

Related posts about tags