HTMLMenuItemElement

草案
此页面不完整。

Deprecated since HTML5.2
This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.

HTMLMenuItemElement interface provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating <menuitem> elements.

特性

This interface has no properties, but inherits properties from: HTMLElement

方法

This interface has no methods, but inherits methods from: HTMLElement

规范

规范 状态 Comment
HTML 5.1
The definition of 'HTMLMenuItemElement' in that specification.
Recommendation Snapshot of the HTML Living Standard .
初始定义。

浏览器兼容性

更新 GitHub 上的兼容性数据
Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
HTMLMenuItemElement
弃用
Chrome No Edge No Firefox 8 IE No Opera No Safari No WebView Android No Chrome Android No Firefox Android 8 Opera Android No Safari iOS No Samsung Internet Android No
checked
弃用
Chrome No Edge No Firefox 8 IE No Opera No Safari No WebView Android No Chrome Android No Firefox Android 8 Opera Android No Safari iOS No Samsung Internet Android No
command
弃用
Chrome No Edge No Firefox No IE No Opera No Safari No WebView Android No Chrome Android No Firefox Android No Opera Android No Safari iOS No Samsung Internet Android No
default
弃用
Chrome No Edge No Firefox Yes
Alternate Name
Yes
Alternate Name
Alternate Name Uses the non-standard name: defaultChecked
IE No Opera No Safari No WebView Android No Chrome Android No Firefox Android Yes
Alternate Name
Yes
Alternate Name
Alternate Name Uses the non-standard name: defaultChecked
Opera Android No Safari iOS No Samsung Internet Android No
disabled
弃用
Chrome No Edge No Firefox 8 IE No Opera No Safari No WebView Android No Chrome Android No Firefox Android 8 Opera Android No Safari iOS No Samsung Internet Android No
icon
弃用
Chrome No Edge No Firefox 8 IE No Opera No Safari No WebView Android No Chrome Android No Firefox Android 8 Opera Android No Safari iOS No Samsung Internet Android No
label
弃用
Chrome No Edge No Firefox 8 IE No Opera No Safari No WebView Android No Chrome Android No Firefox Android 8 Opera Android No Safari iOS No Samsung Internet Android No
radiogroup
弃用
Chrome No Edge No Firefox 8 IE No Opera No Safari No WebView Android No Chrome Android No Firefox Android 8 Opera Android No Safari iOS No Samsung Internet Android No
type
弃用
Chrome No Edge No Firefox 8 IE No Opera No Safari No WebView Android No Chrome Android No Firefox Android 8 Opera Android No Safari iOS No Samsung Internet Android No

图例

完整支持
完整支持
不支持
不支持
弃用。不要用于新网站。
弃用。不要用于新网站。
使用非标名称。

另请参阅

  1. HTMLMenuItemElement
  2. 继承:
    1. HTMLElement
    2. Element
    3. Node
    4. EventTarget
  3. Related pages for HTML DOM
    1. BeforeUnloadEvent
    2. DOMStringMap
    3. ErrorEvent
    4. GlobalEventHandlers
    5. HTMLAnchorElement
    6. HTMLAreaElement
    7. HTMLAudioElement
    8. HTMLBRElement
    9. HTMLBaseElement
    10. HTMLBaseFontElement
    11. HTMLBodyElement
    12. HTMLButtonElement
    13. HTMLCanvasElement
    14. HTMLContentElement
    15. HTMLDListElement
    16. HTMLDataElement
    17. HTMLDataListElement
    18. HTMLDialogElement
    19. HTMLDivElement
    20. HTMLDocument
    21. HTMLElement
    22. HTMLEmbedElement
    23. HTMLFieldSetElement
    24. HTMLFormControlsCollection
    25. HTMLFormElement
    26. HTMLFrameSetElement
    27. HTMLHRElement
    28. HTMLHeadElement
    29. HTMLHeadingElement
    30. HTMLHtmlElement
    31. HTMLIFrameElement
    32. HTMLImageElement
    33. HTMLInputElement
    34. HTMLIsIndexElement
    35. HTMLKeygenElement
    36. HTMLLIElement
    37. HTMLLabelElement
    38. HTMLLegendElement
    39. HTMLLinkElement
    40. HTMLMapElement
    41. HTMLMediaElement
    42. HTMLMetaElement
    43. HTMLMeterElement
    44. HTMLModElement
    45. HTMLOListElement
    46. HTMLObjectElement
    47. HTMLOptGroupElement
    48. HTMLOptionElement
    49. HTMLOptionsCollection
    50. HTMLOutputElement
    51. HTMLParagraphElement
    52. HTMLParamElement
    53. HTMLPictureElement
    54. HTMLPreElement
    55. HTMLProgressElement
    56. HTMLQuoteElement
    57. HTMLScriptElement
    58. HTMLSelectElement
    59. HTMLShadowElement
    60. HTMLSourceElement
    61. HTMLSpanElement
    62. HTMLStyleElement
    63. HTMLTableCaptionElement
    64. HTMLTableCellElement
    65. HTMLTableColElement
    66. HTMLTableDataCellElement
    67. HTMLTableElement
    68. HTMLTableHeaderCellElement
    69. HTMLTableRowElement
    70. HTMLTableSectionElement
    71. HTMLTemplateElement
    72. HTMLTextAreaElement
    73. HTMLTimeElement
    74. HTMLTitleElement
    75. HTMLTrackElement
    76. HTMLUListElement
    77. HTMLUnknownElement
    78. HTMLVideoElement
    79. HashChangeEvent
    80. History
    81. ImageData
    82. Location
    83. MessageChannel
    84. MessageEvent
    85. MessagePort
    86. Navigator
    87. NavigatorGeolocation
    88. NavigatorID
    89. NavigatorLanguage
    90. NavigatorOnLine
    91. NavigatorPlugins
    92. PageTransitionEvent
    93. Plugin
    94. PluginArray
    95. PopStateEvent
    96. PortCollection
    97. PromiseRejectionEvent
    98. RadioNodeList
    99. Transferable
    100. ValidityState
    101. Window
    102. WindowBase64
    103. WindowEventHandlers
    104. WindowTimers