在外部样式表中查找CSS类的定义 [英] Find definition of CSS class in external stylesheet

查看:105
本文介绍了在外部样式表中查找CSS类的定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Chrome的开发工具来检查网页中的元素。假设它显示如下内容:

I'm using Chrome's Development Tools to inspect an element from a web page. Suppose it shows something like:

<div class="some-class">

假设某类在外部样式表,查找定义某类的样式表的最简单方法是什么?

Assuming some-class is defined in an external style sheet, what is the simplest way to find the style sheet(s) that define some-class?

推荐答案

如果您使用的是Chrome检查器(右键单击页面,检查元素),请突出显示该行并向右看。它应该显示CSS类和使用的任何规则,以及指向CSS文件的链接。

If you're using the Chrome inspector (right click page, inspect element), highlight the line and look to the right. It should show the CSS class and any rules that are used, and a link to the CSS file.

这篇关于在外部样式表中查找CSS类的定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆