<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>自己写js日历</title>
<style>
* {
margin: 0;
padding: 0;
}
ul, li {
list-style: none;
}
#calendar {
width: 504px;
border: 1px solid #dadada;
border-radius: 3px;
}
.c_header {
width: 100%;
height: 60px;
background-color: #83d8e7;
background-image: linear-gradient(to bottom, #abe5ef, #83d8e7);
position: relative;
}
.c_header h1 {
font-size: 16px;
height: 30px;
line-height: 30px;
text-align: center;
color: #ffffff;
}
.c_header span {
width: 20px;
height: 20px;
line-height: 20px;
color: #ffffff;
text-align: center;
position: absolute;
top: 5px;
border-radius: 50%;
background-image: linear-gradient(to bottom, #83d8e7, #abe5ef);
cursor: pointer;
}
.c_header span:hover {
background: #83d8e7;
}
.c_header span.pre {
left: 10px;
}
.c_header span.next {
right: 10px;
}
.c_header ol {
position: absolute;
left: 0;
top: 30px;
overflow: hidden;
}
详细解决方案
li里面嵌套div的有关问题,大家帮忙看看
热度:76 发布时间:2013-11-05 14:40:42.0
相关解决方案