【问题标题】:Transparent context menu item during Thunderbird addon developmentThunderbird 插件开发期间的透明上下文菜单项
【发布时间】:2016-08-15 22:32:54
【问题描述】:

目前我正在为 Thunderbird 3* 开发一个上下文菜单插件。我正在尝试添加我自己的子菜单项作为邮件内容的现有 Thunderbird 上下文菜单的一部分。

使用以下 XUL:

<?xml version="1.0"?>
  <overlay id="sample" 
         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
         <script type="application/javascript" src="chrome://elane/content/expoverlay.js"/>
    <popup id="mailContext"> 
    <menu id="elMenu" label="submenu 1">
        <popup id="elMenu-popup">
            <menuitem id="openBing" 
                      label="Sub Menu Item 1" 
                      oncommand="openURL('https://bing.com')"/>
            <menuitem id="openGoogle" 
                      label="Sub Menu Item 2" 
                      oncommand="openURL('https://google.com')"/>
        </popup>
    </menu>
    </popup>
</overlay>

新添加的上下文菜单项和子菜单项具有透明背景:

谁能帮我解释这背后的原因和可能的解决方法?

【问题讨论】:

    标签: xul thunderbird thunderbird-addon


    【解决方案1】:

    &lt;popup id="elMenu-popup"&gt; 和对应的&lt;/popup&gt; 更改为&lt;menupopup id="elMenu-popup"&gt;&lt;/menupopup&gt;

    【讨论】:

      猜你喜欢
      • 2022-11-24
      • 2018-02-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-08-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多