optgroup - HTML元素

来源:百度文库 编辑:神马文学网 时间:2024/04/20 21:57:13
定义
允许作者对 select 元素中的选项进行逻辑分组。
Allows authors to group choices logically in a select element.
注释
在 HTML 4.0  中,所有的 OPTGROUP 元素必须在 SELECT 元素中直接指定。组不允许嵌套。
你只能在与 OPTGROUP 位于同一窗口的 SELECT 元素中添加 OPTGROUP。
此元素在 Internet Explorer 6 及以上版本的 HTML 中可用。
此元素是块元素。
此元素需要关闭标签。
In HTML 4.0 , all OPTGROUP elements must be specified directly within a SELECT element. Groups may not be nested.
You can add OPTGROUP elements only to a SELECT element located in the same window where the OPTGROUP elements are created.
This element is available in HTML as of Internet Explorer 6.
This element is a block element.
This element requires a closing tag.
元素示例代码