組合表單中的相關(guān)元素:
<form>
<fieldset>
<legend>health information</legend>
height: <input type="text" />
weight: <input type="text" />
</fieldset>
</form>
IE | Firefox | Chrome | Safari | Opera |
---|---|---|---|---|
所有瀏覽器都支持 <legend> 標(biāo)簽。
legend 元素為 fieldset 元素定義標(biāo)題(caption)。
在 HTML 4.01 中,align 屬性不被贊成使用。
在 XHTML 1.0 Strict DTD 中,align 屬性不被支持。
DTD 指示此屬性允許在哪種 DTD 中使用。S=Strict, T=Transitional, F=Frameset.
屬性 | 值 | 描述 | DTD |
---|---|---|---|
align |
|
不贊成使用。請(qǐng)使用樣式代替。 為 fieldset 中的標(biāo)題定義對(duì)齊方式。 |
TF |
<fieldset> 標(biāo)簽支持 HTML 中的全局屬性。
<fieldset> 標(biāo)簽支持 HTML 中的事件屬性。
HTML DOM 參考手冊(cè):Legend 對(duì)象
如對(duì)本文有疑問(wèn),請(qǐng)?zhí)峤坏浇涣髡搲?,廣大熱心網(wǎng)友會(huì)為你解答?。?點(diǎn)擊進(jìn)入論壇
copyright © 2013-2024 版權(quán)所有 鄂ICP備17013400號(hào)