英 [?menju:]? ?美 [?m?nju, ?menju]??

n.菜單;菜,菜餚

複數(shù): menus

html menu標(biāo)籤 語法

作用:定義指令的清單或選單。

說明:用於上下文功能表、工具列以及用於列出表單控制項(xiàng)和命令。

註解:目前所有主流瀏覽器都不支援 <menu> 標(biāo)籤。請(qǐng)使用 CSS 來設(shè)定選單列表的樣式!

html menu標(biāo)籤 範(fàn)例

<!DOCTYPE html>
<html>
<body>

<menu type="toolbar">
 <li>
  <menu label="File">
   <button type="button" onclick="file_new()">新建</button>
   <button type="button" onclick="file_open()">打開</button>
   <button type="button" onclick="file_save()">保存</button>
  </menu>
 </li>
 <li>
  <menu label="Edit">
   <button type="button" onclick="edit_cut()">剪切</button>
   <button type="button" onclick="edit_copy()">復(fù)制</button>
   <button type="button" onclick="edit_paste()">粘貼</button>
  </menu>
 </li>
</menu>

<p><b>注釋:</b>所有主流瀏覽器均不支持 menu 元素。</p>

</body>
</html>

執(zhí)行實(shí)例 ?

點(diǎn)擊 "執(zhí)行實(shí)例" 按鈕查看線上實(shí)例