-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathmodal-window.html
87 lines (67 loc) · 1.9 KB
/
modal-window.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
<!doctype html>
<html lang="zh">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<title>Template Index</title>
<style>
.modalDialog {
position: fixed;
font-family: Arial, Helvetica, sans-serif;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: rgba(0, 0, 0, 0.8);
z-index: 9999;
opacity: 0;
-webkit-transition: opacity 400ms ease-in;
-moz-transition: opacity 400ms ease-in;
transition: opacity 400ms ease-in;
pointer-events: none;
}
.modalDialog:target {
opacity: 1;
pointer-events: auto;
}
.modalDialog > div {
width: 70%;
height: 70%;
position: absolute;
margin: auto;
bottom: 0;
top: 0;
right: 0;
left: 0;
padding: 5px 20px 13px 20px;
border-radius: 10px;
background: #FFF;
}
</style>
</head>
<body>
<a href="#openModal">Open Modal</a>
<ul>
<li></li><li></li><li></li><li></li><li></li><li></li>
<li></li><li></li><li></li><li></li><li></li><li></li>
<li></li><li></li><li></li><li></li><li></li><li></li>
<li></li><li></li><li></li><li></li><li></li><li></li>
<li></li><li></li><li></li><li></li><li></li><li></li>
<li></li><li></li><li></li><li></li><li></li><li></li>
<li></li><li></li><li></li><li></li><li></li><li></li>
<li></li><li></li><li></li><li></li><li></li><li></li>
</ul>
<div id="openModal" class="modalDialog">
<div>
<a href="#close" title="close" class="close">X</a>
<h2>Modal Box</h2>
<p>This is a sample moal box that can be created using the powers of css3</p>
<p>You could do a lot fo things here like have a pop up ad that</p>
</div>
</div>
<script>
</script>
</body>
</html>