带有两个菜单按钮 ("File" 和 "Edit") 的工具栏,每个按钮都包含带有一系列选项的下拉列表:
</>code
<menu type="toolbar">
- <li>
- <menu label="File">
- <button type="button" onclick="file_new()">New...</button>
- <button type="button" onclick="file_open()">Open...</button>
- <button type="button" onclick="file_save()">Save</button>
- </menu>
- </li>
- <li>
- <menu label="Edit">
- <button type="button" onclick="edit_cut()">Cut</button>
- <button type="button" onclick="edit_copy()">Copy</button>
- <button type="button" onclick="edit_paste()">Paste</button>
- </menu>
- </li>
</menu>
IE | Firefox | Chrome | Safari | Opera |
---|---|---|---|---|
目前所有主流浏览器都不支持 <menu> 标签。
<menu> 标签定义命令的列表或菜单。
<menu> 标签用于上下文菜单、工具栏以及用于列出表单控件和命令。
提示:请使用 CSS 来设置菜单列表的样式!
在 HTML 4.01 中已弃用 <menu> 元素。
在 HTML5 中重新定义了 <menu> 元素。
在 HTML 4.01 中,menu 元素不被赞成使用。
在 XHTML 1.0 Strict DTD 中,menu 元素不被支持。
<menu> 标签支持 HTML 中的全局属性。
<menu> 标签支持 HTML 中的事件属性。
HTML DOM 参考手册:Column 对象
如对本文有疑问,请提交到交流论坛,广大热心网友会为你解答!! 点击进入论坛
Powered by 365建站网 RSS地图 HTML地图
copyright © 2013-2024 版权所有 鄂ICP备17013400号