我在两个 chrome 选项卡中有相同的页面。这个页面有一个配置,如果你改变它,一些样式也会被修改。
我遇到的问题是不应更改特定样式,但实际上确实如此。这是一个 line-height
样式。
我遇到的问题是,在一个页面中,line-height
是 14px,而在另一个页面中是 18px,同样的事情发生在 font-size
上。
我在 chrome 开发人员工具的计算部分中搜索,但我找不到该更改的来源,因为 line-height
和 font-size
说 inherit
但下面的所有值都是删除线。所以我的问题更多的是以一般方式了解这些值的设置位置?
最佳答案
- 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:
关于html - 当以下所有值在计算中都被删除线时,查找继承的 css 样式值?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39897136/