2011-06-11 80 views
0

我的表格數據高度沒有增加?爲什麼?表格數據​​高度沒有變化

<table> 
    <tr> 
    <td>Name : </td> 
    </tr> 
    <tr> 
    <td><input type="text" name = "name" height="80" size="35" /></td>    
    </tr> 
    <tr> 
    <td>E-mail : </td> 
    </tr> 
    <tr> 
    <td><input type="text" name = "name" size="35" /></td> 
    </tr> 
</table> 

回答

2

在這裏你去: http://jsfiddle.net/y9THJ/

+0

非常感謝Chumillas .....它工作。我幾乎完成了..我救了我:) – Nitish 2011-06-11 12:37:23

+0

但問題是'爲什麼?' – 2011-06-11 12:37:51

2

高度不input元素的屬性。你可以爲此使用一些CSS。

input{ 
     height:30px; 
    } 
+0

但是在w3schhols.com教程(http://www.w3schools.com/tags/att_td_height.asp)中,他們說高度是td的一個屬性,而事件在他們的tryItEditor中起作用。但不是在我的代碼....最新的原因是什麼? – Nitish 2011-06-11 12:44:05

+0

@Nitish,你的代碼中'input'不是'td'上的高度屬性? – clairesuzy 2011-06-11 12:58:56