我正在使用 Chrome 来调试和测试我的网站,但是由于某种原因,当我使用元素检查器并在节点上突出显示时,通常网页本身中的相应元素会突出显示以显示宽度/高度/边距/填充等。 ..但是由于某种原因它没有在我的网站上执行此操作,我已经在其他网站上测试过它并且它对它们工作得很好...我也在 Safari 中尝试过它并且在那里它工作?!
我不知道为什么会这样,我唯一的想法是我必须在 CSS 中设置一些东西,以防止使用此功能进行某些样式设置,直到我在 Safari 中对其进行测试。
I am using Chrome to debug and test my website, however for some reason when I use the element inspector, and highlight over a node, usually the corresponding element in the web page itself is highlighted to show width/height/margin/padding etc... however for some reason its not doing this with my site, I have tested it for other websites and it works fine for them... I have also tried it in Safari and in there it works?!
I have no idea why this could be, my only thought is that I must have set something in the CSS which prevents some styling with this feature until I tested it in Safari.
发布评论
评论(2)
尝试一下,这是一种解决方法。
按
CTRL + SHIFT + C
并将鼠标悬停在要检查的元素上。Give this a try, its sort of a workaround.
press
CTRL + SHIFT + C
and mouse over the element you want to inspect.你能说得更具体一些吗? “开启”?
编辑:我确实发现我必须禁用所有这些:
相反,您可以使用:
Javacsript
CSS
Could you be more specific? "Turned on"?
Edit: I found indeed that I have to disable all this:
In stead you can use:
Javacsript
CSS