-
Notifications
You must be signed in to change notification settings - Fork 21
/
skin.html
201 lines (193 loc) · 6.75 KB
/
skin.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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>tooltips</title>
<meta name="keywords" content="tooltips tooltips.js jquery.tooltips.js 弹出层 插件"/>
<meta name="description" content="tooltips tooltips.js jquery.tooltips.js 弹出层 插件">
<meta name="author" content="tianshaojie [email protected] http://www.cnblogs.com/purediy">
<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/bootstrap-responsive.css" rel="stylesheet">
<link href="css/docs.css" rel="stylesheet">
<link href="js/google-code-prettify/prettify.css" rel="stylesheet">
<link href="css/tooltips.css" rel="stylesheet" id="skin">
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]--> <!-- Le fav and touch icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="ico/apple-touch-icon-57-precomposed.png">
<link rel="shortcut icon" href="ico/favicon.png">
<style>
/*扩展提示框内的字体样式*/
.pt {
position: absolute;
text-align:left;
background: none repeat scroll 0 0 #FFFFFF;
border: 1px solid rgba(82, 168, 236, 0.8);
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.1);
z-index: 2209;
width: auto;
height:auto;
display:none;
font-family: "微软雅黑","Microsoft Yahei",Arial,Helvetica,sans-serif,"宋体";
font-size: 13px;
color: #515151;
}
.pt .cont {
height: auto;
overflow-y: auto;
background-color: #FFFFFF;
padding: 10px;
}
.pt .out, .pt .in {
display: block;
font-family: simsun;
font-size: 0;
height: 0;
overflow: visible;
position: absolute;
width: 0;
}
/*************down*****************/
.pt-down .out, .pt-down .in {
border-style: solid dashed dashed;
}
.pt-down .out {
border-color: rgba(82, 168, 236, 0.8) transparent transparent;
border-width: 8px 7px 0;
bottom: -8px;
left: 28px;
top: auto;
}
.pt-down .in {
border-color: #FFFFFF transparent transparent;
border-width: 7px 6px 0;
bottom: -7px;
left: 29px;
top: auto;
}
</style>
<body data-spy="scroll" data-target=".bs-docs-sidebar">
<!-- Navbar -->
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span><span class="icon-bar"></span> <span class="icon-bar"></span>
</button>
<a class="brand" href="index.html">tooltips</a>
<div class="nav-collapse collapse">
<p class="navbar-text pull-right">
<a href="http://www.cnblogs.com/purediy/" target="_blank">Blog on cnblogs</a>
</p>
<ul class="nav">
<li class=""><a href="example.html">Examples</a></li>
<li class=""><a href="api.html">API</a></li>
<li class="active"><a href="skin.html">Skin</a></li>
<li class=""><a href="about.html">About</a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="container"><!-- Docs nav -->
<div class="row">
<div class="span3 bs-docs-sidebar">
<ul class="nav nav-list bs-docs-sidenav">
<li><a href="#purebox-invoke"><i class="icon-chevron-right"></i>1. 提示框结构</a></li>
<li><a href="#purebox-options"><i class="icon-chevron-right"></i>2. 自定义样式</a></li>
</ul>
</div>
<div class="span9"><!-- Download -->
<section id="purebox-invoke">
<div class="page-header">
<h4>1. 静态HTML结构</h4>
</div>
<div class="bs-docs-example" style="padding-bottom: 24px; height:50px;">
<div class="pt pt-down" style="display: block;">
<div class="cont">好雨知时节, 当春乃发生。<br>随风潜入夜, 润物细无声。</div>
<b class="out"></b>
<b class="in"></b>
</div>
</div>
<pre class="prettyprint linenums">
<div class="pt pt-down">
<div class="cont"> </div>
<b class="out"> </b>
<b class="in"> </b>
</div>
</pre>
</section>
<section id="purebox-options">
<div class="page-header">
<h4>2. 自定义样式</h4>
</div>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th style="width: 100px;">类名</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>.pt{}</code></td>
<td>提示框DIV外框架,可以定义边框、背景、字体等,配合CSS3可以设置阴影等,<code>本例中没有使用任何图片</code></td>
</tr>
<tr>
<td><code>.pt .cont {}</code></td>
<td>内容区样式。</td>
</tr>
<tr>
<td><code>.pt .out, .pt .in {}</code></td>
<td>外层、内层三角基本样式。</td>
</tr>
<tr>
<td><code>.pt-down .out, .pt-down .in {}</code></td>
<td>指向为下时三角基本样式。(上左右类似)</td>
</tr>
<tr>
<td><code>.pt-down .out {}</code></td>
<td>指向为下时外三角样式。(上左右类似)</td>
</tr>
<tr>
<td><code>.pt-down .in {}</code></td>
<td>指向为下时内三角样式。(上左右类似)</td>
</tr>
</tbody>
</table>
</section>
</div>
</div>
</div>
<!-- Footer -->
<footer class="footer">
<div class="container">
Designed and build by <a href="https://github.com/tianshaojie" target="_blank">@tianshaojie</a>
<p><a href="http://www.cnblogs.com/purediy/" target="_blank">Blog on cnblogs</a></p>
</div>
</footer>
<!-- Placed at the end of the document so the pages load faster -->
<script src="js/jquery.js"></script>
<script src="js/bootstrap-transition.js"></script>
<script src="js/bootstrap-alert.js"></script>
<script src="js/bootstrap-modal.js"></script>
<script src="js/bootstrap-dropdown.js"></script>
<script src="js/bootstrap-scrollspy.js"></script>
<script src="js/bootstrap-tab.js"></script>
<script src="js/bootstrap-tooltip.js"></script>
<script src="js/bootstrap-popover.js"></script>
<script src="js/bootstrap-button.js"></script>
<script src="js/bootstrap-collapse.js"></script>
<script src="js/bootstrap-carousel.js"></script>
<script src="js/bootstrap-typeahead.js"></script>
<script src="js/bootstrap-affix.js"></script>
<script src="js/holder/holder.js"></script>
<script src="js/google-code-prettify/prettify.js"></script>
<script src="js/application.js"></script>
<script src="js/jquery.pure.tooltips.js"></script>
</body>
</html>