js实现一个现实考勤信息的日历效果代码
代码语言:html
所属分类:图表
代码描述:js实现一个现实考勤信息的日历效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<style>
body{background: #fafafa;}
ol,ul{list-style:none;}
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td{margin:0;padding:0;}
/*日历*/
#schedule-Setup,
#schedule-Setup2,
#schedule-Setup3 {
padding-top: 35px;
}
#schedule-Setup .dayStyle,
#schedule-Setup2 .dayStyle,
#schedule-Setup3 .dayStyle {
width: 60px;
height: 60px;
line-height: 60px;
font-size: 24px;
}
#schedule-box {
/* width: 320px; */
width: 100%;
margin: 20px auto;
padding: 35px 20px;
font-size: 13px;
}
.schedule-hd {
display: flex;
justify-content: center;
padding: 0 15px;
height: 50px;
line-height: 50px;
border-bottom: 1px solid #f3f3f3;
margin-bottom: 10px;
}
.today {
text-align: center;
max-width: 180px;
font-size: 24px;
margin: 0 20px;
color: #333333;
}
/*.ul-box{
overflow: hidden;
}*/
.clearfix:after{
display: block;
content: ".";
height: 0;
visibility: hidden;
clear: both;
font-size: 0;
line-height: 0;
}
.ul-box>li {
float: left;
width: 14.28%;
text-align: center;
padding: 5px 0;
position: relative;
}
.ul-box>li .date-active{background: #0592FE; color: #FFFFFF;}
#schedule-Setup .week-ul,
#schedule-Setup2 .week-ul,
#schedule-Setup3 .week-ul {
padding-bottom: 20px;
}
#schedule-Setup .ul-box>li,
#schedule-Setup2 .ul-box>li,
#schedule-Setup3 .ul-box>li {
font-size: 24px;
}
#schedule-Setup .schedule-hd,
#schedule-Setup2 .schedule-hd,
#schedule-Setup3 .schedule-hd {
display: none;
}
.prevYear {
position: absolute;
left: 10px;
}
.nextYear {
position: absolute;
right: 10px;
padding-right: 15px;
}
.nextYear:before {
position: absolute;
right: 0px;
}
.other-month {
color: #D5D5D5;
}
.current-month {
position: relative;
color: #333333;
}
.zc_day:hover~.day_time {
display: block;
}
.ls_day:hover~.day_time {
display: block;
}
.qq-style:hover~.day_time {
display: block;
}
.day_time {
font-size: 14px;
text-align: left;
border-radius: 5px;
position: absolute;
left: 100%;
top: 5px;
width: 120px;
height: 70px;
background: rgba(0, 0, 0, 0.7);
display: none;
color: white;
padding: 5px;
line-height: 30px;
z-index: 111;
padding-left: 12.5px;
box-sizing: border-box;
}
.day_time:after {
content: "";
position: absolute;
left: -5px;
top: 10px;
width: 0;
height: 0;
border-top: 5px solid transparent;
border-right: 5px solid rgba(0, 0, 0, 0.7);
border-bottom: 5px solid transparent;
}
.today-style {
border-radius: 50%;
background: rgb(5, 146, 254);
}
.arrow {
cursor: pointer;
}
.dayStyle {
display: inline-block;
width: 30px;
height: 30px;
border-radius: 50%;
text-align: center;
line-height: 30px;
font-size: 14px;
cursor: default;
position: relative;
z-index: 1;
}
.dayStyle:before{
position: absolute;
z-index: 11;
content: "";
top:0;
left: 0;
width: 100%;
height: 100%;
}
/*.current-month > .dayStyle:hover{
background:rgb(153,170,182) !important;
color: #fff;
}*/
.zc_day {
background: rgb(5, 146, 254);
color: #ffffff;
box-shadow: 0px 5px 9px 0px rgba(179, 222, 255, 1);
}
.ls_day {
background: #99AAB6;
color: #ffffff;
box-shadow: 0px 2px 4px 0px rgba(233, 233, 233, 1);
}
.current-month .select_day {
background: rgb(5, 146, 254);
color: #ffffff;
box-shadow: 0px 5px 9px 0px rgba(179, 222, 255, 1);
}
/*.current-month .select_day:hover{
background: rgb(5,146,254) !important;
}*/
/* /* /*
.today-flag{
background: rgb(5,146,254) ;
color: #ffffff;
}*/
.xx_day:after {
content: "休";
position: absolute;
font-size: 14px;
right: 8px;
top: 50%;
margin-top: -7px;
height: 14px;
line-height: 14px;
display: inline-block;
color: #0592FE;
}
.selected-style {
background: rgb(5, 146, 254);
color: #ffffff;
}
.qq-style {
background: rgb(233, 67, 53) !important;
color: white;
position: relative;
}
.rest-style{
background: rgb(51 .........完整代码请登录后点击上方下载按钮下载查看
















网友评论0