ASP.NET 教程教程
ASP.NET TextBox Rows 属性
ASP.NET TextBox Rows 属性
ASP.NET TextBox Rows 属性
TextBox 控件
定义和用法
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>
演示实例 »
TextBox 控件
ASP.NET TextBox Rows 属性 |
---|
ASP.NET 教程
ASP.NET 是微软公司提出的一个使用 HTML、CSS、JavaScript 和服务器脚本创建网页和网站的开发框架。ASP.NET 支持三种不同的开发模式:单页面模式、MVC 模式、事件驱动模式。