-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path日历表格.html
82 lines (64 loc) · 1.3 KB
/
日历表格.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>日历表格</title>
<style>
.calendar_table_frame{
background: #000;
width:735px;
clear: both;
}
.calendar_table_frame dl{
display: block;
width:100%;
}
.calendar_table_frame dd{
}
.calendar_table_frame span{
display: block;
width: 100px;
height: 100px;
margin: 5px 5px 0 0;
background: #000;
color: #fff;
float: left;
}
</style>
</head>
<body>
<!--
数据来源
http://flights.ctrip.com/Domestic/home/LowestPriceCalendar/BJS/CKG?0.014526708517223597
-->
<div class="cal">
<h2 class="calendar_table_title"></h2>
<div class="calendar_table_frame">
</div>
<a href="#" class="calendar_control_next">下一个月</a>
<a href="#" class="calendar_control_prev">上一个月</a>
</div>
<script src="jquery-1.7.min.js"></script>
<script src="gs_calendar_table.js"></script>
<script>
$(function(){
$('.cal').gs_calendar_table();
/*
var data = [{a:1,b:1},{a:1,b:2},{a:2,b:2}];
var html = new Array([]);
var j=0;
for(i in data){
var x = data[i].a;
if (x==1) {
html[j].push(data[i]);
}else{
j++;
}
}
console.log(html[0]);
console.log(html[1]);
*/
});
</script>
</body>
</html>