51

When I inspect elements in Chrome, under my styles I have element.style {}, What does this refer to? It contains styles I am not including in my code source.

4

1 回答 1

64

Those are inline styles.
They come from the style="" attribute or from Javascript code that sets element.style.someProperty.

于 2013-03-29T20:58:33.797 回答