Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sockets/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Firefox addon 如何在firefox';s上下文菜单_Firefox Addon_Xul - Fatal编程技术网

Firefox addon 如何在firefox';s上下文菜单

Firefox addon 如何在firefox';s上下文菜单,firefox-addon,xul,Firefox Addon,Xul,我正在尝试在firefox的contextmenu中的menuitem前后添加一个菜单分隔符。 这是我的预期输出… | | | | |Select All | |---------------------| |Show Meaning | |---------------------| | | |

我正在尝试在firefox的contextmenu中的menuitem前后添加一个菜单分隔符。
这是我的预期输出…

| | | | |Select All | |---------------------| |Show Meaning | |---------------------| | | | | | | |全选| |---------------------| |显出意义| |---------------------| | | 我的代码…

<popup id="contentAreaContextMenu">
        <menuseparator />
        <menuitem id="diction-show-meaning" label="Show meaning" oncommand="" insertafter="context-selectall"/>
        <menuseparator />
    </popup>

但是,菜单分隔符出现在上下文菜单的末尾

如何将contentAreaContextMenu的菜单项括起来? 我不喜欢通过java脚本动态地完成它。但如果这是唯一可能的方法,请告诉我

试试看

<popup id="contentAreaContextMenu">
    <menuitem id="diction-show-meaning" label="Show meaning" oncommand="" insertafter="context-sep-selectall"/>
    <menuseparator />
</popup>

有人!请跟我说!选中此项: