[英]Firefox developer tools adding a new rule?
I decided to try out the built in Firefox Developer Tools. 我决定试用内置的Firefox开发者工具。 Seems to be nice, but...
似乎很好,但......
I can't find out how to add a new rule to the CSS from Inspector/Rules. 我无法找到如何从Inspector / Rules向CSS添加新规则。 By that I mean ".my-new-rule" not just the "element" rule that is open by default.
我的意思是“.my-new-rule”而不仅仅是默认打开的“元素”规则。
FINAL EDIT: This is now possible with the latest Firefox update. 最终编辑:现在可以使用最新的Firefox更新。
As of FF 33.00 it is now possible to add new CSS rules using the inspector! 从FF 33.00开始,现在可以使用检查器添加新的CSS规则!
It is not possible to use the inspector to create new CSS rules with out a browser add-on (see comment below). 无法使用检查器在没有浏览器加载项的情况下创建新的CSS规则(请参阅下面的注释)。
Just use the style editor. 只需使用样式编辑器。 Type anywhere to make a new rule:
输入任意位置以制定新规则:
As of Firefox 33 (in nightly right now https://nightly.mozilla.org/ ), this works. 从Firefox 33开始(现在每晚都在https://nightly.mozilla.org/ ),这是有效的。
When you have a node selected in the inspector, you can click on any of the selectors in the "Rules" sidebar to edit them. 在检查器中选择节点后,可以单击“规则”侧栏中的任何选择器进行编辑。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.