|
<input type="text" value="One, Two, Three" style="font: 14pt verdana;background-color:yellow;border-style:dashed;border-color:red;width:300;" runat="server"/>
虚线框哦,也不用Photoshop就可以做了,style很强大。
asp:Calender 控件中
<form runat="server"> <ASP:Calendar runat="server" BackColor="Beige" ForeColor="Brown" BorderWidth="3" BorderStyle="Solid" BorderColor="Black" Height="450" Width="450" Font-Size="12pt" Font-Name="Tahoma,Arial" Font-Underline="false" CellSpacing=2 CellPadding=2 ShowGridLines=true /> </form>
注意有颜色部分,这部分就是对控件的修饰,它的作用,就是让你的Web窗体更漂亮。
再给一个例子
<ASP:Calendar CSSClass="calstyle" runat="server"
BackColor="Beige" ForeColor="Brown" BorderWidth="3" BorderStyle="Solid" BorderColor="Black" Height="450" Width="450" Font-Size="12pt" Font-Name="Tahoma,Arial" Font-Underline="false" CellSpacing=2 CellPadding=2 ShowGridLines=true
TitleStyle-BorderColor="darkolivegreen" TitleStyle-BorderWidth="3" TitleStyle-BackColor="olivedrab" TitleStyle-Height="50px"
DayHeaderStyle-BorderColor="darkolivegreen" DayHeaderStyle-BorderWidth="3" DayHeaderStyle-BackColor="olivedrab" DayHeaderStyle-ForeColor="black" DayHeaderStyle-Height="20px"
DayStyle-Width="50px" DayStyle-Height="50px"
TodayDayStyle-BorderWidth="3"
WeekEndDayStyle-BackColor="palegoldenrod" WeekEndDayStyle-Width="50px" WeekEndDayStyle-Height="50px"
SelectedDayStyle-BorderColor="firebrick" SelectedDayStyle-BorderWidth="3"
OtherMonthDayStyle-Width="50px" OtherMonthDayStyle-Height="50px" />
是不是更漂亮,设置也很简单,一看就能明白。
2.7 最重要的两个注意事项
上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] 下一页 |