คุณสมบัติ CellPadding ของ ASP.NET
การประกาศและการใช้งาน
คุณสมบัติ CellPadding ใช้เพื่อตั้งค่าหรือกลับค่าจำนวนพิกเซลระหว่างเขตติดตั้งและเนื้อหาของแถว
หมายเหตุ:ฟังก์ชันนี้มีผลบวกเฉพาะเมื่อคุณสมบัติ RepeatLayout ตั้งเป็น "Table"
ศัพท์
<asp:RadioButtonList CellPadding="pixels" runat="server"> some content </asp:RadioButtonList >
คุณสมบัติ | คำอธิบาย |
---|---|
pixels | กำหนดจำนวนพิกเซลระหว่างเขตติดตั้งและเนื้อหา |
ตัวอย่าง
ตัวอย่างด้านล่างนี้ได้ตั้งค่าคุณสมบัติ CellPadding ของ RadioButtonList
<form runat="server"> <asp:RadioButtonList id="rb1" runat="server" CellPadding="15"> Some content </asp:RadioButtonList> </form>
ตัวอย่าง
- ตั้งค่าคุณสมบัติ CellPadding ของ RadioButtonList