ASP.NET RadioButtonList CellSpacing 屬性


RadioButtonList 控件 RadioButtonList 控件

定義和用法

CellSpacing 屬性用於獲取或設置 RadioButtonList 中表格單元格之間的像素數。

注意:該函數僅在 RepeatLayout 屬性設置為 "Table" 時有效(默認)。

語法

<asp:RadioButtonList CellSpacing="pixels" runat="server">
Some Content
</asp:RadioButtonList >

屬性 描述
pixels 規定表格單元格之間的像素數。


實例

下麵的實例設置了 RadioButtonList 控件的 CellSpacing 屬性:

<form runat="server">
<asp:RadioButtonList id="rb1"
runat="server" CellSpacing="15">

Some content

</asp:RadioButtonList>
</form>


RadioButtonList 控件 RadioButtonList 控件