element.style in chrome element inspector?

后端 未结 1 1286
失恋的感觉
失恋的感觉 2020-12-18 17:30

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.

1条回答
  •  萌比男神i
    2020-12-18 18:28

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

    0 讨论(0)
提交回复
热议问题