ASP.NET Caption属性


Table 控件

定義と用法

Caption プロパティは、Table コントロールのタイトルとして表示されるテキストを取得または設定するために使用されます。

语法

<asp:Table Caption="string" runat="server">
Some Content
</asp:Table>
 
属性 描述
string 表のタイトルとして表示されるテキスト。


实例

以下の例では、TableコントロールにCaptionを設定しています:

<form runat="server">
<asp:Table id="tab1" runat="server"
Caption="Table 实例">
<asp:TableRow>
<asp:TableCell>
Hello!
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</form>

演示实例 »

Table 控件 其他扩展