forked from yanlele/node-index
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
152 lines (130 loc) · 3.79 KB
/
index.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>jQuery网站公告上下滚动自动轮播代码</title>
<script type="text/javascript" src="../../../jquery.min.js"></script>
<script type="text/javascript">
$(function () {
var num = $('.notice_active').find('li').length;
if (num > 1) {
setInterval(function(){
$('.notice_active').find('ul').animate({
marginTop: "-3.5rem"
}, 500, function () {
$(this).css({marginTop: "0.7rem"}).find("li:first").appendTo(this);
})
}, 3500);
}
});
</script>
<style type="text/css">
/*border-bottom: 1px solid #F0F0F0;*/
.huadong {
width: 60rem;
height: 4rem;
padding: 0.5rem 0 0.3rem 0;
border-bottom: 1px solid #F0F0F0;
position: relative;
font: 12px/1.5 "Hiragino Sans GB", "Microsoft YaHei", simsun;
margin: 0 auto;
}
.huadong .huabox {
margin: 0 auto;
width: 80%;
line-height: 4rem;
}
.huadong .hdimg {
float: left;
line-height: 3.5rem;
}
.huadong .hdimg img {
width: 100%;
vertical-align: middle;
}
.huadong h5 {
font-size: 1rem;
float: left;
line-height: 2.2rem;
margin: 0.8rem 0 0 0;
}
.huadong .gg_more {
float: left;
}
.huadong .gg_more a {
font-size: 0.8rem;
text-decoration: none;
}
.huadong .notice_active {
float: left;
width: 55%;
height: 4rem;
padding: 0;
overflow: hidden;
position: relative;
}
.huadong .notice_active li {
list-style-type: none;
line-height: 2.4rem;
overflow: hidden;
}
/*.huadong .notice_active li.notice_active_ch {}*/
.huadong .notice_active li.notice_active_ch span {
color: #656972;
font-size: 1rem;
display: block;
overflow: hidden;
width: 80%;
float: left;
overflow: hidden;
margin: 0 0 2rem 0;
}
.huadong .gg_more .news_ck {
float: left;
margin: 0 1rem 0 1rem;
color: #888;
width: 5rem;
height: 2rem;
line-height: 2rem;
display: block;
border: 1px solid #656972;
text-align: center;
border-radius: 0.7rem;
font-size: 0.8rem;
margin-top: 1rem;
}
.huadong .gg_more .news_more {
}
.huadong .notice_active li.notice_active_ch em {
text-align: right;
float: right;
color: #888;
font-size: 0.8rem;
font-style: normal;
}
</style>
</head>
<body>
<div class="huadong">
<div class="huabox">
<h5>【公告】</h5>
<div class="notice_active">
<ul>
<li class="notice_active_ch">
<span>滑动轮播1a去哦我我iwoi我i滑动轮播3滑</span>
<em>2017-01-20</em>
</li>
<li class="notice_active_ch">
<span>滑动轮播2滑动轮播3</span>
<em>2017-01-20</em>
</li>
<li class="notice_active_ch">
<span>站长素材文字滚动播放</span>
<em>2017-01-20</em>
</li>
</ul>
</div>
</div>
</div>
</body>
</html>