2011-06-11 79 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