ASP.NET CellPadding 屬性
定義和用法
CellPadding 屬性用于設置或返回單元格邊框與內容之間的像素數。
注釋:該函數僅在 RepeatLayout 屬性設置為 "Table" 時有效。
語法
<asp:RadioButtonList CellPadding="pixels" runat="server"> some content </asp:RadioButtonList >
屬性 | 描述 |
---|---|
pixels | 規定單元格邊框與內容之間的像素數。 |
實例
下面的例子設置了 RadioButtonList 控件的 CellPadding 屬性:
<form runat="server"> <asp:RadioButtonList id="rb1" runat="server" CellPadding="15"> Some content </asp:RadioButtonList> </form>
實例
- 設置 RadioButtonList 控件的 CellPadding 屬性