ASP.NET RadioButtonList CellPadding 屬性
定義和用法
CellPadding 屬性用於設置或返回單元格邊框與內容之間的像素數。
注意:該函數僅在RepeatLayout屬性設置為"Table"時有效。
語法
<asp:RadioButtonList CellPadding="pixels" runat="server">
Some Content
</asp:RadioButtonList >
Some Content
</asp:RadioButtonList >
属性 | 描述 |
---|---|
pixels | 规定单元格边框与内容之间的像素数。 |
實例
下面的實例設置了RadioButtonList 控件的CellPadding 屬性:
<form runat="server">
<asp:RadioButtonList id="rb1"
runat="server" CellPadding="15">
Some content
</asp:RadioButtonList>
</form>
<asp:RadioButtonList id="rb1"
runat="server" CellPadding="15">
Some content
</asp:RadioButtonList>
</form>
演示實例»
RadioButtonList控件