0

firefox の contextmenu の menuitem の前後にメニュー区切りを追加しようとしています。
これは私の期待される出力です...

| | | |
 | | | |
 |すべて選択 |
 |---------------------|
 |意味を表示 |
 |---------------------|
 | | | |

私のコード...

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

ただし、メニューセパレーターはコンテキストメニューの最後に表示されています!

contentAreaContextMenu のメニュー項目をどのように囲みますか? Javaスクリプトを使用して動的に行うことは好みません。しかし、それが可能な唯一の方法であるかどうか教えてください...

4

1 に答える 1

1

試す

<popup id="contentAreaContextMenu">
    <menuitem id="diction-show-meaning" label="Show meaning" oncommand="" insertafter="context-sep-selectall"/>
    <menuseparator />
</popup>
于 2013-04-12T10:05:26.257 に答える