Firefox developer tools adding a new rule?

时间秒杀一切 提交于 2019-12-04 03:38:21

问题


I decided to try out the built in Firefox Developer Tools. Seems to be nice, but...

I can't find out how to add a new rule to the CSS from Inspector/Rules. By that I mean ".my-new-rule" not just the "element" rule that is open by default.

FINAL EDIT: This is now possible with the latest Firefox update.


回答1:


Update:

As of FF 33.00 it is now possible to add new CSS rules using the inspector!


It is not possible to use the inspector to create new CSS rules with out a browser add-on (see comment below).
Just use the style editor. Type anywhere to make a new rule:




回答2:


As of Firefox 33 (in nightly right now https://nightly.mozilla.org/), this works.

When you have a node selected in the inspector, you can click on any of the selectors in the "Rules" sidebar to edit them.



来源:https://stackoverflow.com/questions/24489080/firefox-developer-tools-adding-a-new-rule

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!