ASP.NET GridLines属性
Table 控件
定義と用法
GridLines プロパティは、Table コントロールのグリッド線スタイルを取得または設定するために使用されます。
语法
<asp:Table GridLines="mode" runat="server">
Some Content
</asp:Table>
Some Content
</asp:Table>
| 属性 | 描述 |
|---|---|
| mode | 表にグリッド線のスタイルを指定します。 可能な値:
|
实例
以下の例では、GridLines プロパティを "Both" に設定しています:
<form runat="server">
<asp:Table id="tab1" runat="server" GridLines="Both">
<asp:TableRow>
<asp:TableCell>
Hello!
</asp:TableCell>
<asp:TableCell>
Hello!
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</form>
<asp:Table id="tab1" runat="server" GridLines="Both">
<asp:TableRow>
<asp:TableCell>
Hello!
</asp:TableCell>
<asp:TableCell>
Hello!
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</form>
演示实例 »
Table 控件 其他扩展