这是我们在源代码中的内容,php在服务器上提供的内容
<div class="box-content" id="newDivCont" style="padding-bottom: 20px;">
当我通过清除缓存加载页面时,我在 chrome 的控制台中看到了这个
<div class="box-content" id="newDivCont" style="padding-bottom: 20px; height: 914.006px;">
那些。一些脚本改变了高度,并且错误地 - 正因为如此,偏移量去了。此外,如果我通过 F5 刷新页面,我们已经在控制台中看到了源代码
<div class="box-content" id="newDivCont" style="padding-bottom: 20px;">
如何跟踪谁在做?通过控制台,通过事件侦听器不可能做到这一点,它没有找到它。
不需要通过事件处理程序,而是通过更改 dom 元素。
在元素选项卡上,右键单击它,Break on... attribute modifications