문제

There is a specific line of code in my functions.js file which adds height: 371px to a <div> in the HTML output and I really need to remove that.

My question is: Is there a smart way to find out which exact line in my JavaScript file adds this property?

I've been searching for 371px, but this numerical value changes as soon as I resize my browser window. I've also been searching for height and got more than 200 entries, so I gave up.

I'm using Firebug by the way, but not very familiar with it.

도움이 되었습니까?

해결책

What you can do is to add an HTML breakpoint on that <div>. To do so right-click the element inside the HTML panel and choose Break On Attribute Change.

The next time you resize the window the script execution should stop exactly at the line where the height is set.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top