-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path$.html
69 lines (67 loc) · 1.44 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv=“X-UA-Compatible” content=“IE=11″>
<title>arrow</title>
<script src="jquery.js"></script>
<style>
body {
margin: 0 0;
padding: 0 0;
}
.box {
position: relative;
margin: 0 auto;
margin-top: 20px;
width: 700px;
height: 400px;
border: 2px solid #778899;
border-radius: 1em
}
.box-bar {
background: #87CEEB;
border-top-left-radius: 1em;
border-top-right-radius: 1em;
height: 40px
}
.box-bar a {
display: inline-block;
float: right;
text-decoration: none;
color: #fff;
margin-right: 20px;
height: 40px;
line-height: 40px;}
</style>
</head>
<body>
<div id="box" class="box">
<div class="box-bar">
<a href="#">
刷新
</a>
</div>
abcdefjabcdefj abcdefj abcdefjabcdefj abcdefj abcdefj abcdefjabcdefjabcdefj
abcdefj abcdefjabcdefj abcdefj abcdefj abcdefjabcdefjabcdefj
</div>
</body>
</html>
<!--通过点击事件,以下是通过点击事件获取的动态的一张图片-->
<script>
$('a').click(function() {
$("<div id='shade' style='opacity:0.85;background:white'></div><img id='layer-img' src='http://img.lanrentuku.com/img/allimg/1212/5-121204193R5-50.gif'/>").css({
position: 'absolute',
top: 0,
left: 0,
'border-radius': '1em',
zIndex: 300,
height: '100%',
width: '100%'
}).appendTo('#box');
var timer = setTimeout(function() {
$('#shade, #layer-img').remove()
},
1000)
})
</script>