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;
	le.........完整代码请登录后点击上方下载按钮下载查看

网友评论0