一个js写的日历(代码部分网摘)

2022-01-14,,,

这段代码忘记从哪里摘录的了,刚开始摘录的时候,水平有限,有些地方的写法没看懂;经过学习,现在终于能明白其中的含义了。

特意贴出这段代码,因为它的代码简洁和清晰,觉得不错,供大家分享。
×××××××函数定义部分
复制代码 代码如下:

××××××××样式表的定义
复制代码 代码如下:

.Calendar {
font-family:Verdana;
font-size:12px;
background-color:#e0ecf9;
text-align:center;
width:400px;
height:180px;
padding:10px;
line-height:1.5em;
}
.Calendar a{
color:#1e5494;
}
.Calendar table{
width:100%;
border:0;
}
.Calendar table thead{color:#acacac;}
.Calendar table td {
font-size: 11px;
padding:1px;
}
#idCalendarPre{
cursor:pointer;
float:left;
padding-right:5px;
}
#idCalendarNext{
cursor:pointer;
float:right;
padding-right:5px;
}
#idCalendar td.onToday {
font-weight:bold;
color:#C60;
}
#idCalendar td.onSelect {
font-weight:bold;
}
#buttonposition{
margin-left: 10%;
}

***********下面是应用的主体部分
复制代码 代码如下:

<<
>>

以上就是一个js写的日历(代码部分网摘)的详细内容,更多请关注本站其它相关文章!

《一个js写的日历(代码部分网摘).doc》

下载本文的Word格式文档,以方便收藏与打印。