html menu tag


  Translation results:

UK [ˈmenju:] US [ˈmɛnju, ˈmenju]

n.Menu; dish, dish

Plural: menus

html menu tagsyntax

Function:Define a list or menu of commands.

Description: Used for context menus, toolbars, and for listing form controls and commands.

Note: Currently all major browsers do not support the <menu> tag. Please use CSS to style your menu list!

html menu tagexample

<!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()">复制</button>
   <button type="button" onclick="edit_paste()">粘贴</button>
  </menu>
 </li>
</menu>

<p><b>注释:</b>所有主流浏览器均不支持 menu 元素。</p>

</body>
</html>

Run instance »

Click the "Run instance" button to view the online instance

Popular Recommendations

Home

Videos

Q&A