- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
在研究如何为 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)
有什么好处吗?
最佳答案
@-moz-document
是 @document
的前缀形式,一个 CSS“@-rule”,它将包含的规则限制为某些 URL。所以在这种情况下,
@-moz-document url(chrome://browser/content/browser.xul)
将其包含的规则限制为 browser.xul
。
在不深入研究 userchrome.css
的情况下,我希望这意味着规则将仅适用于“Firefox 的一部分”,而不是实际的网页。
您可以通过创建一个包含 ID #PanelUI-button
元素的页面来测试它,并查看 display:none
是否适用于它。
关于css - Mozilla Firefox userChrome.css?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36682548/
当整个浏览器窗口失去焦点时,我可以在 userChrome.css 中使用 CSS 选择器来更改 Firefox 的文本颜色吗? 我试过: window:focus element { color:
在研究如何为 Mozilla Firefox 创建 userChrome.css 时,我发现您可以通过不同的方式来实现: 示例 1: @namespace url("http://www.mozill
在我的 userChrome.css 中: @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
我在我的 Mac 和我的个人电脑上使用 Firefox,并且我有相同的 userChrome 用于它们将选定的选项卡颜色和选定的搜索栏颜色设置为橙色(以及其他一些东西)。我电脑上的 userChrom
我正在尝试为 userChrome.js 中定义的 Thunderbird 调试自定义 javascript。不幸的是,我没有找到登录 javascript 控制台的好方法。有没有一种简单的方法可以将
我在 FreeBSD 上使用 Firefox 72,并在 userChrome.css 中配置了一些样式。这很好用。例如,我可以将菜单栏中"file"菜单的标签设为红色 @namespace url(
为什么 Firefox 将其 UI 界面配置文件命名为: userChrome.css ?为什么不 userFirefox.css ? 最佳答案 “chrome”这个词指的是“皮肤”或基本上是 UI
我想自定义我的 mozilla 界面以全屏显示,没有选项卡工具栏和导航栏。我使用 ./chrome/userChrome.css 如下所示: #main-window { max-width:1
自 CustomizeMyBird Mozilla Thunderbird 68 不再支持插件,我的问题是如何手动修改这些按钮: 新 Thunderbird 68 - 差: 带有经典工具栏恢复器的旧
Firefox 刚刚更新,现在看不到 userChrome.css,toolkit.legacyUserProfileCustomizations.stylesheets 设置为 true。我试图隐藏
我是一名优秀的程序员,十分优秀!