ASP.NET Table 控件

2018-09-11 15:22 更新

ASP.NET Table 控件


Web Server Controls Web 服務(wù)器控件

定義和用法

Table 控件與 TableCell 控件和 TableRow 控件配合,用于創(chuàng)建表格。


屬性

屬性 描述 .NET
BackImageUrl 表格的背景圖像的 URL。 1.0
Caption 表格的標(biāo)題。 2.0
CaptionAlign 標(biāo)題文本的對(duì)齊方式。 2.0
CellPadding 單元格邊框與內(nèi)容的間距。 1.0
CellSpacing 單元格間距。 1.0
GridLines 表格的網(wǎng)格線格式 1.0
HorizontalAlign 表格在頁(yè)面中的水平對(duì)齊方式。 1.0
Rows 表格中的行集合。 1.0
runat 規(guī)定該控件是服務(wù)器控件。必須設(shè)置為 "server"。 1.0

Web 控件標(biāo)準(zhǔn)屬性

AccessKey, Attributes, BackColor, BorderColor, BorderStyle, BorderWidth, CssClass, Enabled, Font, EnableTheming, ForeColor, Height, IsEnabled, SkinID, Style, TabIndex, ToolTip, Width

如需完整描述,請(qǐng)?jiān)L問(wèn) Web 控件標(biāo)準(zhǔn)屬性。

控件標(biāo)準(zhǔn)屬性

AppRelativeTemplateSourceDirectory, BindingContainer, ClientID, Controls, EnableTheming, EnableViewState, ID, NamingContainer, Page, Parent, Site, TemplateControl, TemplateSourceDirectory, UniqueID, Visible

如需完整描述,請(qǐng)?jiān)L問(wèn) 控件標(biāo)準(zhǔn)屬性。


實(shí)例

Table
在本例中,我們?cè)?.aspx 文件中聲明了兩個(gè) Table 控件。

Table 2
在本例中,我們?cè)?.aspx 文件中聲明了一個(gè) Table 控件,三個(gè) TableRow 控件,和兩個(gè) TableCell 控件。


Web Server Controls Web 服務(wù)器控件
以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)