ASP.NET Calendar CellPaddingProperty


Calendar 控件Calendar Control

Definition and Usage

The CellPadding property is used to set the space between the border of a calendar cell and its content.

Syntax

<asp:Calendar CellPadding="pixels" runat="server" />

Property Description
pixels Specifies the space between the border of a calendar cell and its content, in pixels.


Example

The following example shows a calendar with CellPadding of 15:

<form runat="server">
<asp:Calendar id="cal1" runat="server" CellPadding="15" />
</form>

Demo Example »

Calendar 控件Calendar Control Other Extensions