简体   繁体   English

如何在Chrome开发者工具中过滤和显示仅应用的CSS(如Firefox中的Firebug)

[英]How to filter and show only applied CSS in Chrome Developer Tools (like Firebug in Firefox)

Background story: I have a page with multiple CSS that override each other. 背景故事:我有一个包含多个CSS的页面,它们相互覆盖。 There are so many crossed out CSS style, so I don't want to see them. 有这么多划掉的CSS样式,所以我不想看到它们。

I know Firebug on Firefox provide this feature (Only Show Applied CSS), which can show what CSS style in what CSS file is being applied (neat !). 我知道Firefox上的Firebug提供了这个功能(只显示应用的CSS),它可以显示CSS文件的CSS样式(整洁!)。

How do we have this feature on Chrome ? 我们如何在Chrome上使用此功能? I tried install Firebug Lite for Chrome but no luck. 我尝试安装Firebug Lite for Chrome但没有运气。

PS: Chrome have Computed Style tab, but it does not show what style come from what CSS file. PS:Chrome有Computed Style选项卡,但它没有显示什么样的样式来自什么CSS文件。

In the Chrome dev tools, in the right hand column (where CSS is shown in the Elements panel), the first section is called "Computed Style". 在Chrome开发工具的右侧栏中(CSS在“元素”面板中显示),第一部分称为“计算样式”。 If you deselect "show inherited", you get a neat list of the styles that actually apply to the element. 如果取消选择“show inherited”,您将获得实际应用于该元素的样式的整齐列表。 Does that help? 这有帮助吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在Firebug for Firefox中编辑Chrome中的CSS? - How do I edit CSS in Chrome like in Firebug for Firefox? 如何使用Firebug和Chrome开发者工具调试不同媒体查询中的CSS? - How to debug css inside different media queries with Firebug and Chrome Developer tools? Chrome:仅当您使用Google Developer工具时才应用CSS样式 - Chrome: CSS Style is applied only when you go to Google Developer tools Chrome 开发者工具 - 如何锁定 css 类列表? - Chrome Developer Tools - How to lock css classlist? 如何使用 Chrome 开发者工具保留 CSS 更改 - How to persist CSS changes with Chrome Developer Tools 像开发人员工具扩展一样,如何从Selenium中的Firefox中删除所有CSS样式 - How to remove all CSS styling from Firefox in Selenium like the Developer Tools extension does 为什么Chrome开发人员工具有时不显示CSS源代码? - Why does Chrome developer tools sometimes not show a CSS source? 如何在开发人员工具中仅复制使用过的 CSS - How to copy only used CSS in developer tools Chrome相当于Firefox Firebug CSS选择路径 - Chrome equivalent of Firefox Firebug CSS select path 如何在谷歌浏览器的开发人员工具中显示样式表的路径? - How to show the path of a style sheet in google chrome's developer tools?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM