用optgroup标签来分类select菜单
来源:互联网 发布:守护线程的作用 python 编辑:程序博客网 时间:2024/05/18 06:20
定义
允许作者对 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.
元素示例代码
<Select>
<OPTGROUP LABEL="碱性金属">
<OPTION>锂 (Li)</OPTION>
<OPTION>纳 (Na)</OPTION>
<OPTION>钾 (K)</OPTION>
</OPTGROUP>
<OPTGROUP LABEL="卤素">
<OPTION>氟 (F)</OPTION>
<OPTION>氯 (Cl)</OPTION>
<OPTION>溴 (Br)</OPTION>
</OPTGROUP>
</Select>
允许作者对 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.
元素示例代码
<Select>
<OPTGROUP LABEL="碱性金属">
<OPTION>锂 (Li)</OPTION>
<OPTION>纳 (Na)</OPTION>
<OPTION>钾 (K)</OPTION>
</OPTGROUP>
<OPTGROUP LABEL="卤素">
<OPTION>氟 (F)</OPTION>
<OPTION>氯 (Cl)</OPTION>
<OPTION>溴 (Br)</OPTION>
</OPTGROUP>
</Select>
- 用optgroup标签来分类select菜单
- Select 分类标签 optgroup 代码展示
- html 中 select optgroup 标签
- JS创建select的optgroup和fieldset标签
- optgroup select all
- HTML optgroup 标签
- HTML optgroup 标签作用
- <s:doubleselect>级联下拉框 ,<s:select><s:optgroup>标签组
- select下拉选项分组<optgroup>
- javascript 操作HTML OPTGROUP 标签
- 下拉列表 select-option ; select-optgroup-option
- 用select下拉菜单来实现Ajax异步刷新
- 用javascript来实现select标签的美化
- optgroup 属性实现 select 树结构
- HTML中的下拉列表:<select>、<option>、<optgroup>。
- Struts2标签库(11):<s:optgroup/>
- optiontransferselect标签,optgroup标签,token标签的使用
- div+css使用OPTGROUP对SELECT中的OPTION分组
- Serv-U配置详解
- 实模式和保护模式
- 使用jar命令创建可执行的jar包
- 如何实现深度拷贝?
- Apche PHP Mysql Install
- 用optgroup标签来分类select菜单
- 彩票算法
- Mozilla Firefox 2 Released
- Linux_Debian系统下中文显示
- 使用DBUnit测试存储过程
- VC是什么
- Compiler Error Message错误,常见错误!
- IE7,firefox2,opera9特性对比
- DEBIAN下中文输入法的安装