在Firefox userChrome.css的菜单选项卡下禁用“打开文件”的代码是什么?
我想在Firefox的菜单选项卡中禁用打开文件选项。 我已经写了
menuitem[label=Open File]{ display:none; }
但它不起作用。
使用
#menu_openFile { display: none !important }
在userChrome.css
。 保持
@namespace xul url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
作为第一线。
完全相同的过程用于删除Email links ...
加
#menu_sendLink { display: none !important }
删除:
在对userChrome.css进行更改并重新启动浏览器之后,我们看到Email link ...
已被删除: