導讀跟大家講解下有關HTML5中<menuitem>標簽的使用與定義,相信小伙伴們對這個話題應該也很關注吧,現在就為小伙伴們說說HTML5中<menuitem>標簽
跟大家講解下有關HTML5中<menuitem>標簽的使用與定義,相信小伙伴們對這個話題應該也很關注吧,現在就為小伙伴們說說HTML5中<menuitem>標簽的使用與定義,小編也收集到了有關HTML5中<menuitem>標簽的使用與定義的相關資料,希望大家看到了會喜歡。
html5中<menuitem>標簽作用是彈出菜單調用的項目,這里詳細介紹下<menuitem>標簽用法、<menuitem>標簽屬性以及<menuitem>標簽應用實例。html中<menuitem>標簽作用:彈出菜單調用的項目
<menuitem>標簽用法:
<menuitem> 標簽定義用戶可以從彈出菜單調用的命令/菜單項目。
<menuitem>標簽應用實例:
包含不同 <menuitem> 元素的上下文菜單:
<menu type="context" id="mymenu"> <menuitem label="Refresh" onclick="window.location.reload();" icon="ico_reload.png"> </menuitem> <menu label="Share on..."> <menuitem label="Twitter" icon="ico_twitter.png" onclick="window.open('//twitter.com/intent/tweet?text='+window.location.href);"> </menuitem> <menuitem label="Facebook" icon="ico_facebook.png" onclick="window.open('//facebook.com/sharer/sharer.php?u='+window.location.href);"> </menuitem> </menu> <menuitem label="Email This Page" onclick="window.location='mailto:?body='+window.location.href;"></menuitem></menu><menuitem>標簽有哪些屬性?
H5 : 表示HTML5 中的新屬性。
哪些瀏覽器支持<menuitem>標簽?
Firefox8.0以及更高的版本支持<menuitem>標簽。
以上就是HTML5中<menuitem>標簽的使用與定義的詳細內容,更多請關注php中文網其它相關文章!
來源:php中文網