ASP.NET 教程教程
ASP.NET CheckBoxList TextAlign 属性
ASP.NET CheckBoxList TextAlign 属性
ASP.NET CheckBoxList TextAlign 属性
CheckBoxList 控件
定义和用法
TextAlign 属性用于获取或设置 CheckBoxList 项目的文本的文本对齐方式。
语法
<asp:CheckBoxList TextAlign="align" runat="server">
Some Content
</asp:CheckBoxList>
Some Content
</asp:CheckBoxList>
属性 | 描述 |
---|---|
align | 为列表项目规定文本的对齐方式。 可能的值:
|
实例
下面的实例把 CheckBoxList 控件中的 TextAlign 属性设置为 "Left":
<form runat="server">
<asp:CheckBoxList id="rb1"
runat="server" TextAlign="Left">
Some content
</asp:CheckBoxList>
</form>
<asp:CheckBoxList id="rb1"
runat="server" TextAlign="Left">
Some content
</asp:CheckBoxList>
</form>
演示实例 »
CheckBoxList 控件
ASP.NET CheckBoxList TextAlign 属性 |
---|
ASP.NET 教程
ASP.NET 是微软公司提出的一个使用 HTML、CSS、JavaScript 和服务器脚本创建网页和网站的开发框架。ASP.NET 支持三种不同的开发模式:单页面模式、MVC 模式、事件驱动模式。