??? ??, ?? ?? ??? ?? ??
???? ??? ? ??? ??? ???? ?? ?? ??? ?? ??? ???? ???.
Syntax:
<textarea rows="行數(shù)" cols="列數(shù)">文本</textarea>
1
, <textarea> ??? <textarea>? ???? </textarea>? ??? ??? ?????.
1
、<textarea>標(biāo)簽是成對(duì)出現(xiàn)的,以<textarea>開始,以</textarea>結(jié)束。
2
、cols :
多行輸入域的列數(shù)。
3
、rows :
多行輸入域的行數(shù)。
4
、在<textarea></textarea>標(biāo)簽之間可以輸入默認(rèn)值。
舉例
2
,
cols:
?? ? ?? ??? columns
?????.
3
,
rows:
?? ? ?? ???
????. 4
, <textarea></textarea> ?? ???
? ??? ? ????.
??Example??
??: ????<form method="post" action="save.php"> <label>聯(lián)系我們</label> <textarea cols="50" rows="10" >在這里輸入內(nèi)容...</textarea> </form>??????? ??? ?????. ????????????????? ? ??? CSS ??? ??? height ???: col? ??? ???? row? ??? ?????. ?????? ????