ASP.NET CellPadding 속성

정의 및 사용법

CellPadding 속성은 테이블 셀의 경계선과 내용 사이의 픽셀 수를 설정하거나 반환합니다。

주의사항:RepeatLayout이 "Table"로 설정되었을 때만 해당 함수가 유효합니다。

문법

<asp:CheckBoxList CellPadding="pixels" runat="server">
some content
</asp:CheckBoxList>
속성 설명
픽셀 테이블 셀의 경계선과 내용 사이의 픽셀 수를 정의합니다。

예제

아래 예제는 CheckBoxList 컨트롤의 CellPadding 속성을 설정합니다:

<form runat="server">
<asp:CheckBoxList id="rb1" runat="server"> CellPadding="15">
Some content
</asp:CheckBoxList>
</form>

예제

CheckBoxList 컨트롤의 CellPadding 설정