-
Notifications
You must be signed in to change notification settings - Fork 4
/
example.html
141 lines (125 loc) · 3.54 KB
/
example.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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>css3鼠标提示</title>
<meta name="description" content="纯css鼠标提示工具。tooltip.css。" />
<meta name="keywords" content="tooltip,鼠标提示css,鼠标提示工具,纯css鼠标提示工具,tooltip.css使用示例" />
<link rel="stylesheet" href="./dist/tooltip.min.css" />
<style>
body,h1,h2,strong,p{
margin:0;
padding:0;
}
body{
text-align:center;
line-height:150%;
font-size:16px;
font-family: "微软雅黑";
background-color:#EFF3FD;
}
h2{margin-top:25px;}
strong{
font-family: arial;
}
.header{
width:100%;
height:180px;
background-color:#66677C;
color:#D5D6E2;
}
.header a {
display: block;
width: 120px;
height: 35px;
line-height: 35px;
background-color: #E36209;
color: #fff;
font-weight: bold;
margin: 10px auto;
text-decoration: none;
border-radius: 4px;
border: 2px solid #E34C26;
opacity: 0.85;
transition: all 0.3s ease-in;
}
.header a:hover {
background-color: #E34C26;
border-color: #CF5033;
text-shadow: 0 2px 3px #333;
box-shadow: 0 3px 0 #333;
}
.row{
display:table;
}
.col{
width:300px;
height:60px;
display:table-cell;
vertical-align: middle;
padding:20px;
box-sizing:border-box;
}
.col p{
padding:15px 30px;
background-color:#fff;
border:1px solid darkblue;
color:darkblue;
font-size:21px;
}
.col p:hover{
color:midnightblue;
border-color:midnightblue;
}
.demo{
width:900px;
margin-left:auto;
margin-right:auto;
margin-top:100px;
}
</style>
</head>
<body>
<div class="header row">
<div class="header-wrapper col">
<h1>Tooltip.css</h1>
<h2>纯 css3 Tooltip 提示工具样式</h2>
<strong>A simple and easy-to-use css3 tooltip.</strong>
<a href="https://github.com/JofunLiang/tooltip">Github</a>
</div>
</div>
<div class="demo" >
<div class="row">
<div class="col">
<p data-tooltip="top-left" data-tooltip-text="左上方提示样式,css3提示样式">Top Left</p>
</div>
<div class="col">
<p data-tooltip="top" data-tooltip-text="上方提示样式">Top</p>
</div>
<div class="col">
<p data-tooltip="top-right" data-tooltip-text="右上方提示样式,css3提示样式">Top Right</p>
</div>
</div>
<div class="row">
<div class="col">
<p data-tooltip="left" data-tooltip-text="左边提示样式 
 这个是左边提示样式哦 
 css3提示样式">Left</p>
</div>
<div class="col" style="font-size:48px; font-weight: bold; color:darkblue;">Tooltip.css</div>
<div class="col">
<p data-tooltip="right" data-tooltip-text="右边提示样式 
 这个是右边提示样式哦 
 css3提示样式">Right</p>
</div>
</div>
<div class="row">
<div class="col">
<p data-tooltip="bottom-left" data-tooltip-text="左下方提示样式,css3提示样式">Bottom Left</p>
</div>
<div class="col">
<p data-tooltip="bottom" data-tooltip-text="下方提示样式">Bottom</p>
</div>
<div class="col">
<p data-tooltip="bottom-right" data-tooltip-text="右下方提示样式,css3提示样式">Bottom Right</p>
</div>
</div>
</div>
</body>
</html>