Firefox addon 如何在firefox';s上下文菜单
我正在尝试在firefox的contextmenu中的menuitem前后添加一个菜单分隔符。Firefox addon 如何在firefox';s上下文菜单,firefox-addon,xul,Firefox Addon,Xul,我正在尝试在firefox的contextmenu中的menuitem前后添加一个菜单分隔符。 这是我的预期输出… | | | | |Select All | |---------------------| |Show Meaning | |---------------------| | | |
这是我的预期输出…
| | | | |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>
有人!请跟我说!选中此项: