Movatterモバイル変換


[0]ホーム

URL:


  1. 面向开发者的 Web 技术
  2. Web API
  3. HTMLOptGroupElement

此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

View in EnglishAlways switch to English

HTMLOptGroupElement

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月.

* Some parts of this feature may have varying levels of support.

HTMLOptGroupElement 接口提供一些特别的属性和方法(除了从HTMLElement 对象接口中继承的以外)以调整<optgroup> 元素的布局和显示。

must be a string

属性

HTMLElement 中继承属性。

HTMLOptGroupElement.disabled

是一个boolean,表示整个子代<option> 列表是可用的(false)还是不可用的(true)。

HTMLOptGroupElement.label

是一个DOMString,表示该分组的标签。

方法

没有专有的方法;从HTMLElement 中继承方法。

规范

Specification
HTML
# htmloptgroupelement

浏览器兼容性

参见

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2026 Movatter.jp