HTMLOptGroupElement
HTMLOptGroupElement 接口提供一些特别的属性和方法(除了从 HTMLElement 对象接口中继承的以外)以调整 <optgroup> 元素的布局和显示。
属性
从 HTMLElement 中继承属性。
HTMLOptGroupElement.disabled-
是一个
boolean(en-US),表示整个子代<option>列表是可用的(false)还是不可用的(true)。 HTMLOptGroupElement.label-
是一个
DOMString,表示该分组的标签。
方法
没有专有的方法;从 HTMLElement 中继承方法。
规范
| Specification |
|---|
| HTML Standard # htmloptgroupelement |
浏览器兼容性
BCD tables only load in the browser
参见
- 实现该接口的 HTML 元素:
<optgroup>