ASP.NET CellSpacing 屬性
定義和用法
CellSpacing 屬性用于獲取或設(shè)置 RadioButtonList 中表格單元格之間的像素數(shù)。
注釋:該函數(shù)僅在 RepeatLayout 屬性設(shè)置為 "Table" 時有效(默認)。
語法
<asp:RadioButtonList CellSpacing="pixels"
runat="server">
some content
</asp:RadioButtonList >
屬性 | 描述 |
---|---|
pixels | 規(guī)定表格單元格之間的像素數(shù)。 |
實例
下面的例子設(shè)置了 RadioButtonList 控件的 CellSpacing 屬性:
<form runat="server">
<asp:RadioButtonList id="rb1" runat="server" CellSpacing="15"
>
Some content
</asp:RadioButtonList>
</form>
實例
- 設(shè)置 RadioButtonList 控件的 CellSpacing 屬性