亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

HTML <optgroup> 標(biāo)簽

實(shí)例

通過(guò) <optgroup> 標(biāo)簽把相關(guān)的選項(xiàng)組合在一起:

<select>
  <optgroup label="Swedish Cars">
    <option value ="volvo">Volvo</option>
    <option value ="saab">Saab</option>
  </optgroup>

  <optgroup label="German Cars">
    <option value ="mercedes">Mercedes</option>
    <option value ="audi">Audi</option>
  </optgroup>
</select>

親自試一試

瀏覽器支持

IE Firefox Chrome Safari Opera

所有主流瀏覽器都支持 <optgroup> 標(biāo)簽。

定義和用法

<optgroup> 標(biāo)簽定義選項(xiàng)組。

optgroup 元素用于組合選項(xiàng)。當(dāng)您使用一個(gè)長(zhǎng)的選項(xiàng)列表時(shí),對(duì)相關(guān)的選項(xiàng)進(jìn)行組合會(huì)使處理更加容易。

HTML 與 XHTML 之間的差異

NONE

必需的屬性

屬性 描述
label text 為選項(xiàng)組規(guī)定描述。

可選的屬性

屬性 描述
disabled disabled 規(guī)定禁用該選項(xiàng)組。

全局屬性

<optgroup> 標(biāo)簽支持 HTML 中的全局屬性

事件屬性

<optgroup> 標(biāo)簽支持 HTML 中的事件屬性。