How do I find which JavaScript is changing an element's style?

前端 未结 5 451
攒了一身酷
攒了一身酷 2020-12-08 09:44

I have an element that\'s getting styles applied via JavaScript. I\'m not sure exactly where; is there a way to check Firebug to show where the \"element.style\" is actually

5条回答
  •  無奈伤痛
    2020-12-08 10:03

    You can also right click on the element in the HTML panel before the style is set and select break on Attribute Change. Script panel must be enabled.

提交回复
热议问题