fieldset 元素可將表單內(nèi)的相關(guān)元素分組。
<fieldset> 標(biāo)簽將表單內(nèi)容的一部分打包,生成一組相關(guān)表單的字段。
當(dāng)一組表單元素放到 <fieldset> 標(biāo)簽內(nèi)時(shí),瀏覽器會(huì)以特殊方式來顯示它們,它們可能有特殊的邊界、3D 效果,或者甚至可創(chuàng)建一個(gè)子表單來處理這些元素。
<fieldset> 標(biāo)簽沒有必需的或唯一的屬性。
<legend> 標(biāo)簽為 fieldset 元素定義標(biāo)題。
組合表單中的相關(guān)元素:
<form><fieldset>
<legend>health information</legend> height: <input type="text" /> weight: <input type="text" /></fieldset>
</form>
NONE
id, class, title, style, dir, lang, xml:lang
如需完整的描述,請(qǐng)?jiān)L問標(biāo)準(zhǔn)屬性。
accesskey, onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup
如需完整的描述,請(qǐng)?jiān)L問事件屬性。
如對(duì)本文有疑問,請(qǐng)?zhí)峤坏浇涣髡搲?,廣大熱心網(wǎng)友會(huì)為你解答?。?點(diǎn)擊進(jìn)入論壇
copyright © 2013-2024 版權(quán)所有 鄂ICP備17013400號(hào)