Chrome开发人员工具在灰色的背景上显示CSS规则。为什么? [英] Chrome dev tools showing a CSS rule on a grey background. Why?

查看:74
本文介绍了Chrome开发人员工具在灰色的背景上显示CSS规则。为什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请明确说明-我不是在谈论某个财产变灰或遭到破坏;这是正常显示的整个CSS规则,但背景为灰色。其他应用规则正常显示,没有灰色背景。有人知道灰色背​​景的意思吗?

Just to be clear - I'm not talking about a property being 'greyed out' or struck through; This is a whole CSS rule displayed normally, but on a grey background. Other applied rules display normally, without a grey background. Does anyone know what a grey background means?

我要问的原因是,尽管属性未变灰或没有划破,但规则并未似乎被应用了。我希望灰色背景很有意义,并且这种重要性可以解释为什么未应用该规则。

The reason I'm asking is, despite the properties not being greyed out or struck through, the rule does not appear to get applied. I'm hoping the grey background is significant and that significance might explain why the rule is not being applied.

编辑

我有人告诉我应该编辑问题,以弄清楚为什么它不是上面问题的重复。我只能重复一遍,我没有问过灰色的属性;我问的是灰色背景显示的CSS规则。这就是我在上面原始问题中指定的内容。如果您查看该问题的可接受答案,您会看到用户正在询问灰色的CSS属性(为什么他会接受该答案?)

有人可能会删除重复项 '参考?

Edit
I've been told I should edit the question to make it clear why it's not a duplicate of the question above. I can only repeat that I'm not asking about greyed-out properties; I'm asking about a CSS rule displayed on a grey background. That was what I specified in the original question, above. If you look at the accepted answer to that question you'll see the user was asking about greyed-out CSS properties (why would he accept that answer otherwise?)
Any chance someone could remove the 'duplicate' reference?

推荐答案

由于一个错误/缺陷(重新打开的此处):Chrome的devtools无法编辑动态创建的CSS规则(例如,通过 insertRule 方法)。

Those entries with gray background are not editable due to a bug/deficiency (reopened here): Chrome's devtools cannot edit dynamically created CSS rules (e.g. via insertRule method).

这篇关于Chrome开发人员工具在灰色的背景上显示CSS规则。为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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