村長fb!
此乃舊版魚蛋村,訪客請【按此到新版魚蛋村】繼續瀏覽
魚蛋村 yudansHTML 區HTML 標籤 → <optgroup> 標籤

<optgroup> 標籤

  • HTML 4.01 Strict
  • HTML 4.01 Transitional
  • HTML 4.01 Frameset
  • XHTML 1.0 Strict
  • XHTML 1.0 Transitional
  • XHTML 1.0 Frameset
  • 用途 Usage:
  • 此標籤可建立下拉式清單選項組
  • 例子 Example:
<select>
<optgroup label="冷色系">
<option value="blue">藍</option>
<option value="green">綠</option>
</optgroup>
<optgroup label="暖色系">
<option value="red">紅</option>
<option value="yellow">黃</option>
</optgroup>
</select>
請選擇顏色:
  • 提示 Tips:
  • 通常此標籤會結合 <option> 和 <select> 一起使用來建立下拉式清單
  • 常用的參數 Common Attributes:(非所有參數)
  • 屬性 Attribute描述 Description
    disabled設定是否禁止選用該選項組
    label設定選項組的名稱
魚蛋村,語法,圖片,素材,下載,琴譜,字型,教學,網頁製作,網頁教學,表情符號,程式,yudan,yudans,yudan village,javascript,cgi,php,msn,css,html,w3c,teach
footer