【发布时间】:2016-08-09 12:23:23
【问题描述】:
在研究如何为 Mozilla Firefox 创建userChrome.css 时,我发现您可以通过不同的方式进行操作:
示例 1:
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
@-moz-document url(chrome://browser/content/browser.xul) {
#PanelUI-button {
display: none !important;
}
}
示例 2:
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
#PanelUI-button {
display: none !important;
}
第一个示例包含行@-moz-document url(chrome://browser/content/browser.xul),第二个不包含。我不确定它的作用,两个示例的输出完全相同。
在userChrome.css 中包含@-moz-document url(chrome://browser/content/browser.xul) 有什么好处吗?
【问题讨论】:
标签: css firefox browser userchrome.css