rows 屬性設(shè)置或返回 textarea 的高度。 語法 textareaObject.rows=number_of rows實例 本例改變 textarea 的高度: function changeRows() { document.getElementById('txt1').rows="15"; } <textarea id="txt1"> Hello world...This is a text area </textarea> HTML DOM Textarea 對象...
rows [ oObject = ] object.rows(vIndex [, iSubIndex]) Possible Values oColl Array of tr objects. oObject Reference to an individual item in the array of elements contained by the object. vIndex Required. Integer or string that specifies the element or collection to retrieve. If this ...