ASP.NET CellPadding ÊôÐÔ

¶¨ÒåºÍÓ÷¨

CellPadding ÊôÐÔÓÃÓÚÉèÖûò·µ»Ø±í¸ñµ¥Ôª¸ñµÄ±ß¿òÓëÄÚÈÝÖ®¼äµÄÏñËØÊý¡£

×¢ÊÍ£º¸Ãº¯Êý½öÔÚ RepeatLayout ÉèÖÃΪ "Table" ʱÓÐЧ¡£

Óï·¨

<asp:CheckBoxList CellPadding="pixels" runat="server">
some content
</asp:CheckBoxList>
ÊôÐÔ ÃèÊö
pixels ¹æ¶¨±í¸ñµ¥Ôª¸ñµÄ±ß¿òÓëÄÚÈÝÖ®¼äµÄÏñËØÊý¡£

ʵÀý

ÏÂÃæµÄÀý×ÓÉèÖÃÁË CheckBoxList ¿Ø¼þµÄ CellPadding ÊôÐÔ£º

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

Some content

</asp:CheckBoxList>
</form>

ʵÀý

ÉèÖà CheckBoxList ¿Ø¼þµÄ CellPadding