利用js制作简单的动态日历
代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
.calendar{
position:absolute;
left: 50%;
top: 50%;
margin: -300px 0 0 -400px;
width: 800px;
height: 600px;
background: rgba(0,0,0,0.2);
}
.item{
display: inline-block;
width: 80px;
height: 80px;
line-height: 80px;
text-align: center;
background