【发布时间】:2013-11-18 09:13:14
【问题描述】:
假设我有几个 css 文件:
//first.css
my-style {
color: blue;
}
//second.css
my-style {
font-weight: bold;
}
有没有办法输入类名“my-style”并在整个 html 页面中查看所有 css 文件中的所有规则? (对 Firefox、Chrome 和 Opera 感兴趣)。
【问题讨论】:
-
Firefox 中的 Firebug / 现代 Firefox 和 Chrome 中的开发者控制台可以提供帮助吗? (另外,IE 中的 Fiddler 或 F12 开发者工具)
-
不,这也没有意义(想想为什么?)。您可以在 Chrome 中查看每个元素的计算样式规则。
标签: css class google-chrome firefox opera