HTMLOptGroupElement
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
HTMLOptGroupElement
接口提供一些特别的属性和方法(除了从 HTMLElement
对象接口中继承的以外)以调整 <optgroup>
元素的布局和显示。
must be a string
属性
从 HTMLElement
中继承属性。
HTMLOptGroupElement.disabled
HTMLOptGroupElement.label
-
是一个
DOMString
,表示该分组的标签。
方法
没有专有的方法;从 HTMLElement
中继承方法。
规范
Specification |
---|
HTML # htmloptgroupelement |
浏览器兼容性
Report problems with this compatibility data on GitHubLegend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
参见
- 实现该接口的 HTML 元素:
<optgroup>