In an application where certain elements have custom CSS properties, is there any way to retrieve such a value via JavaScript?
e.g.
相关标签:
You can't use data-* attributes (html5)? That would at least be valid and not a strange hack.