ASP.NET TextBox Rows 属性

定义和用法
Rows 属性用于设置或返回 TextBox 控件的高度。
该属性仅在 TextMode="Multiline" 时使用。
语法
<asp:TextBox runat="server"
Rows="num" TextMode="MultiLine" />
属性 | 描述 |
---|---|
num | 数值,该值规定文本框的高度,以行数计。 |
实例
下面的实例设置了 TextBox 控件的高度:
<form runat="server">
<asp:TextBox id="tb1" runat="server"
TextMode="MultiLine" Rows="5" />
</form>
<asp:TextBox id="tb1" runat="server"
TextMode="MultiLine" Rows="5" />
</form>
演示实例 »
