• λ我爱Aspx >> Asp.Net >> HTML元素 - optgroup [ 用optgroup标签来分类select菜单]
  • HTML元素 - optgroup [ 用optgroup标签来分类select菜单]

  • :未知  Դ:internet  :2007-5-20 16:45:27  ؼ:
  • 定义

    允许作者对 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>

    Ҷƪл˵?
  • һƪ又一免费在线翻译网站
    һƪIFrame语法小全