我正在FreeBSD上使用Firefox 72,并在userChrome.css
中配置了一些样式。这很好。举例来说,我可以使用
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
#file-menu {
color: red !important;
}
现在,我听说了新出现的(似乎已经不多了) CSS变量,又名 CSS属性--*
,并试图使用它们。 las,我一定很想念东西,因为:
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
:root {
--foo: red;
}
#file-menu {
color: var(--foo) !important;
}
将“文件”保留为默认颜色黑色。应该行吗?我想念什么吗?经过一番搜索,我发现在about:config
中toolkit.legacyUserProfileCustomizations.stylesheets
的值应该是true
。现在我没主意了。