ASP.NET GridLines 属性

定义和用法

GridLines 属性用于设置或返回 Table 控件的网格线样式。

注释:该属性在 FireFox 中无效。

语法

<asp:Table GridLines="mode" runat="server">
Some Content
</asp:Table>
属性 描述
mode

为表格规定网格线样式。

可能的值:

  • None
  • Horizontal
  • Vertical
  • Both

实例

下面的例子把 GridLines 属性设置为 "Vertical":

<form runat="server">
<asp:Table id="tab1" runat="server" GridLines="Vertical">
<asp:TableRow>
<asp:TableCell>
Hello!
</asp:TableCell>
<asp:TableCell>
Hello!
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</form>

实例

为 Table 控件设置 GridLines 样式
系统帮助 | 给我留言 | 收藏本站
Copyright © 2005-2008 www.cnn84.com All Rights Reserved Ver:2.0 桂公网安备45122402000102号
CNN84网是公益性便民网站,是为了给大家的日常生活查询及提供最快捷的出行指南