时间控件Calender设置的代码如下:
<asp:Calendar ID="Calendar1" runat="server" BackColor="White" BorderColor="#999999"
CellPadding="0" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt"
ForeColor="Black" Height="180px" Width="200px" CssClass="css" OnSelectionChanged="Calendar1_SelectionChanged" ShowGridLines="True">
<SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
<TodayDayStyle BackColor="LightSkyBlue" ForeColor="Black" />
<SelectorStyle BackColor="#CCCCCC" />
<WeekendDayStyle BackColor="White" ForeColor="#FF8000" />
<OtherMonthDayStyle ForeColor="Blue" />
<NextPrevStyle VerticalAlign="Middle" />
<DayHeaderStyle BackColor="WhiteSmoke" Font-Bold="True" Font-Size="7pt" />
<TitleStyle BackColor="#0B66B6" BorderColor="Black" Font-Bold="True" />
</asp:Calendar>
CellPadding="0" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt"
ForeColor="Black" Height="180px" Width="200px" CssClass="css" OnSelectionChanged="Calendar1_SelectionChanged" ShowGridLines="True">
<SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
<TodayDayStyle BackColor="LightSkyBlue" ForeColor="Black" />
<SelectorStyle BackColor="#CCCCCC" />
<WeekendDayStyle BackColor="White" ForeColor="#FF8000" />
<OtherMonthDayStyle ForeColor="Blue" />
<NextPrevStyle VerticalAlign="Middle" />
<DayHeaderStyle BackColor="WhiteSmoke" Font-Bold="True" Font-Size="7pt" />
<TitleStyle BackColor="#0B66B6" BorderColor="Black" Font-Bold="True" />
</asp:Calendar>