html - 当以下所有值在计算中都被删除线时,查找继承的 css 样式值?

标签 html css google-chrome styles

我在两个 chrome 选项卡中有相同的页面。这个页面有一个配置,如果你改变它,一些样式也会被修改。 我遇到的问题是不应更改特定样式,但实际上确实如此。这是一个 line-height 样式。

我遇到的问题是,在一个页面中,line-height 是 14px,而在另一个页面中是 18px,同样的事情发生在 font-size 上。

我在 chrome 开发人员工具的计算部分中搜索,但我找不到该更改的来源,因为 line-heightfont-sizeinherit 但下面的所有值都是删除线。所以我的问题更多的是以一般方式了解这些值的设置位置? enter image description here

最佳答案

 - Open Chrome Web Inspector.
 - Select the "Element" where you want to check the line height.
 - On the right hand side, you will find "styles".
 - Now scroll on the "styles" to find all the "line-height" styles from different styling files. 

You will see Inherited From section there.
Example:

enter image description here

关于html - 当以下所有值在计算中都被删除线时,查找继承的 css 样式值?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39897136/

相关文章:

javascript - 在 Jquery 中单击 'href' 标签时加载配音

html - 转发电子邮件后电子邮件标记失去响应能力

javascript - 简单设置关闭显示 : none/block with javascript

css - 忽略用于页面大小计算的元素

css - 类似于 Firefox 的 Style Editor for Chrome 的开发者工具

javascript - 通过 Tampermonkey 在新标签页中打开点击链接的方法?

javascript - classList.add 已停止运行我的代码。我不知道为什么。你可以吗?

javascript - 如何从 diff 源获取 iframe html

html - 如何使图像排成一行

javascript - 用户允许获取 Chrome 浏览器通知后如何刷新或重定向用户?