此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。
HTMLMenuElement
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.
HTMLMenuElement 接口提供额外的属性(除了从 HTMLElement 接口继承的属性之外),用于操作 <menu> 元素。<menu> 是 <ul> 元素的语义替代。
实例属性
从其父接口 HTMLElement,和它的祖先继承属性。
-
一个布尔值,用于确定菜单是否紧凑地显示。
实例方法
从其父接口 HTMLElement,和它的祖先继承方法。
HTMLMenuElement 没有实现特定的方法。
规范
| Specification |
|---|
| HTML> # htmlmenuelement> |
浏览器兼容性
Loading...