0

我正在尝试为我的扩展的首选项制作 XUL 覆盖。我有以下代码作为我的叠加层的一部分,但它仍然没有出现在 Firefox->Preferences 下:

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/global.css"  type="text/css"?>

  <overlay id="tabularity-browser-overlay"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

        <prefwindow id="BrowserPreferences">
          <prefpane id="tabularityPane" label="tabularityPane;" 
                    onpaneload="populateSchedulesList()" 
        image="chrome://tabulationtwo/content/images/tab.png">
    <preferences>
            <preference id="perSession"
               name="extensions.tabulation.defaultHomepage"
       type="bool"/>
            </preferences>
    <radiogroup>
      <radio preference="perSession" id="session" label="Open tabs once per session" accesskey="S" selected="true"/>
      <radio preference="perSession" id="instance" label="Open tabs every tab instance"  accesskey="I"/>
    </radiogroup>
          </prefpane>
        </prefwindow>

谁能帮我诊断问题或指出正确的方向?提前致谢。

4

1 回答 1

1

只需发布此解决方案以显示图像:

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/global.css"  type="text/css"?>

  <overlay id="tabularity-browser-overlay"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

        <prefwindow id="BrowserPreferences">
          <prefpane id="tabularityPane" label="tabularityPane;"
                    onpaneload="populateSchedulesList()"
        image="chrome://tabulationtwo/content/images/tab.png">
    <preferences>
            <preference id="perSession"
               name="extensions.tabulation.defaultHomepage"
       type="bool"/>
            </preferences>
    <radiogroup>
      <radio preference="perSession" id="session" label="Open tabs once per session" accesskey="S" selected="true"/>
      <radio preference="perSession" id="instance" label="Open tabs every tab instance"  accesskey="I"/>
    </radiogroup>
          </prefpane>
        </prefwindow>
</overlay>

如果您想知道如何处理,请参考此链接: Firefox 中的菜单栏覆盖 http://hublog.hubmed.org/archives/001606.html 图片:在此处输入图像描述

于 2012-12-09T20:11:13.930 回答