-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
300 lines (285 loc) · 9.99 KB
/
test.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
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
<!DOCTYPE html>
<html>
<head>
<meta name="keywords" content="HTML, CSS, XML, XHTML, JavaScript">
<meta name="description" content="Free Web tutorials on HTML and CSS">
<meta name="author" content="Hege Refsnes">
<meta charset="utf-8">
<!--
<style type="text/css">
h1 {
color:red;
}
h3 {
color:#3FEAD2;
padding-left:140px;
}
p {
color:blue;
}
</style>
-->
<link rel="stylesheet" type="text/css" href="test.css">
<script type="text/javascript" src="test.js"></script>
<noscript> No javascript script is available. </noscript>
</head>
<body>
<header>
<h1 class="head"> Most important heading </h1>
<h3> Less important heading </h3>
</header>
<nav></nav>
<article>
<!-- Map link on the images -->
<img id='image' src="001.jpg" alt='Big baby' width="25%" usemap=#babyface>
<map name="babyface">
<area shape="rect" coords="0,0,82,126" alt="face" href="http://baidu.com">
<area shape="circle" coords="90,200,30" alt="Mercury" href="http://google.com">
<area shape="circle" coords="124,58,8" alt="Venus" href="venus.htm">
</map>
<!-- --------------------- -->
<h1>Status: </h1><p><progress id="pg" min="0" max="100" value='40'> </progress></p>
</article>
<article>
<h1> This is an article block of Audio</h1>
<p>
The text between the <audio> and <audio> tags will display in browsers that do not support the <audio> element.
</p>
<section>
<h3>Audio Source as attribute (+ autoplay):</h3>
<!--<audio src="./Raining.mp3" controls autoplay>-->
<!--<audio src="./Raining.mp3" controls autoplay>-->
<audio src="./Raining.mp3" controls >
Audio element not supported by your browser.
</audio>
</section>
<section>
<h3>Audio Source as an element (+ loop):</h3>
<audio controls loop>
<source src='Raining.mp3' type='audio/mpeg'>
The text between the <audio> and <audio> tags will display in browsers that do not support the <audio> element.
</audio>
</section>
<aside>
</aside>
</article>
<article>
<h1> This is an article block of Video</h1>
<section>
<h3>Video Source as an element (+ autoplay and loop):</h3>
<!-- <video controls autoplay loop> -->
<video width='15%' style="padding-left:20px;" controls>
<source src="./MyBB.mp4" type='video/mp4'>
Video element not supported by your browser.
</video>
</section>
<aside>
</aside>
</article>
<article>
<h1> This is an article block of Video</h1>
<h3>There are two types of web storage objects:</h3>
<ul class='a'>
<li>sessionStorage()</li>
<li>localStorage()</li>
</ul>
<h3>Local vs. Session</h3>
<ul class='b'>
<li>Session Storage is destroyed once the user closes the browser</li>
<li>Local Storage stores data with no expiration date</li>
</ul>
<section>
</section>
<aside>
</aside>
</article>
<article>
<section>
<h3>Input number, and press enter to active the cookie counter:</h3>
<input type="text"/>
</section>
<section>
<p id='demo'></p>
<button onclick="getLocation()">Get location</button>
</section>
<aside>
</aside>
</article>
<article>
<div style="opacity:0.5;
position:absolute;
left:50px;
width:300px;
height:150px;
background-color:#40B3DF"></div>
<div style="font-family:verdana;
padding:20px;
border-radius:10px;
border:10px solid #EE872A; ">
<div style="opacity:0.3;
position:absolute;
left:120px;
width:100px;
height:300px;
background-color:#8AC007"></div>
<h3>Look! Styles and colors</h3>
<div style="letter-spacing:12px;">Manipulate Text</div>
<div style="color:#40B3DF;">Colors
<span style="background-color:#B4009E; color:#ffffff;">Boxes</span>
</div>
<div style="color:#000000;">and more...</div>
</div>
</article>
<article>
<h4>没有单元格间距:</h4>
<table id='t1' border="1">
<tr>
<td>First</td>
<td>Row</td>
</tr>
<tr>
<td>Second</td>
<td>Row</td>
</tr>
</table>
<h4>单元格间距="0":</h4>
<table id='t2' border="1" cellspacing="0">
<tr>
<td>First</td>
<td>Row</td>
</tr>
<tr>
<td>Second</td>
<td>Row</td>
</tr>
</table>
<h4>单元格间距="10":</h4>
<table id='t3' border="1" cellspacing="10">
<tr>
<td>First</td>
<td>Row</td>
</tr>
<tr>
<td>Second</td>
<td>Row</td>
</tr>
</table>
</article>
<article>
<!-- Autocomplete, novalidate, autofocus attribute -->
<p>不同种类的Input Type:</p>
<form action="demo-form.php" method="get" target='_blank' autocomplete='on'>
<input type='color'/>  <input type='date'/>  <input type='datetime'/> 
<input type='datetime-local'/>  <input type='email' placeholder='Email'/> 
<input type='month'/>  <input type='number' placeholder='3-8' min='3' maz='8' required/> 
<input type='range' placeholder='range 3-13' min='3' maz='13' step='2' value='5'/> 
<input type='search' placeholder='Search'/>  <input type='tel' placeholder='0-9' pattern='[0-9]*'/> 
<input type='time'/>  <input type='url' placeholder='url'/>  <input type='week'/>
<!-- Multiple images -->
Select images: <input type='file' name='img' multiple>
<!-- Input type -->
<input list="browsers" placeholder='请选择浏览器类型--' name="browser">
<datalist id="browsers">
<option value="Internet Explorer">
<option value="Firefox">
<option value="Chrome">
<option value="Opera">
<option value="Safari">
</datalist>
<input type="submit">
<!-- Form method and action can be specified separately
<input type="submit2" formmethod='get' formaction='#' formtarget='_blank'>
-->
</form>
<p><strong>注意:</strong> Internet Explorer 9(更早 IE 版本),Safari 不支持 datalist 标签。</p>
</article>
<article>
<iframe src="http://baidu.com" name="iframe_a">
<p>您的浏览器不支持 iframe 标签。</p>
</iframe>
<p><a href="http://www.runoob.com" target="iframe_a">RUNOOB.COM</a></p>
<p><b>注意:</b> 因为 a 标签的 target 属性是名为 iframe_a 的 iframe 框架,所以在点击链接时页面会显示在 iframe框架中。</p>
</article>
<article>
<canvas onclick="testing()" id="myCanvas" width="500" height="500" style="border:1px solid #00FF00;">
您的浏览器不支持 HTML5 canvas 标签。
</canvas>
</article>
<article>
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="250">
<polygon points="100,10 40,180 190,60 10,60 160,250" style="fill:lime;stroke:purple;stroke-width:5;fill-rule:evenodd;">
</svg>
</article>
<article>
<p>可拖动此图片至下方方框内</p>
<img id='draggable_img' src='001.jpg' width=10% draggable='true' ondragstart="drag(event)" />
<div style="width:300px; height:300px; border:3px solid #aaaaaa;" ondrop="drop(event)" ondragover="allowDrop(event)"></div>
</article>
<article>
<div id="status" name="status">状态信息:</div>
</article>
<article>
<p>Worker来计数:<span id='result'></span> <span><strong>注意:</strong> Internet Explorer 9 以下不支持 Web Workers.</span></p>
<button onclick='startWorker()'>Start worker</button>
<button onclick='stopWorker()'>Stop worker</button>
</article>
<article>
<section>
<h1>CSS字体:</h1>
<p>字体的选择: Time New Roman, Arial, Rourier New (<a href='http://www.runoob.com/cssref/css-websafe-fonts.html'>常用字体</a>)</p>
<p style='font-family:"Times New Roman";font-style:normal;'>字体的选择: Time New Roman</p>
<p style='font-family:Arial;font-style:italic;'>字体的选择: Arial</p>
<p style='font-family:serif;font-style:oblique;'>字体的选择: Serif</p>
</section>
<section>
<h1>CSS table:</h1>
<table id="customers">
<caption>Table 1.1 Customers</caption>
<tr> <th>Company</th> <th>Contact</th> <th>Country</th> </tr>
<tr> <td>Alfreds Futterkiste</td> <td>Maria Anders</td> <td>Germany</td> </tr>
<tr class="alt"> <td>Berglunds snabbköp</td> <td>Christina Berglund</td> <td>Sweden</td> </tr>
<tr> <td>Centro comercial Moctezuma</td> <td>Francisco Chang</td> <td>Mexico</td> </tr>
<tr class="alt"> <td>Ernst Handel</td> <td>Roland Mendel</td> <td>Austria</td> </tr>
<tr> <td>Island Trading</td> <td>Helen Bennett</td> <td>UK</td> </tr>
<tr class="alt"> <td>Königlich Essen</td> <td>Philip Cramer</td> <td>Germany</td> </tr>
<tr> <td>Laughing Bacchus Winecellars</td> <td>Yoshi Tannamuri</td> <td>Canada</td> </tr>
<tr class="alt"> <td>Magazzini Alimentari Riuniti</td> <td>Giovanni Rovelli</td> <td>Italy</td> </tr>
<tr> <td>North/South</td> <td>Simon Crowther</td> <td>UK</td> </tr>
<tr class="alt"> <td>Paris spécialités</td> <td>Marie Bertrand</td> <td>France</td> </tr>
</table>
</section>
<section>
<p class="dotted">点线轮廓</p>
<p class="dashed">虚线轮廓</p>
<p class="solid">实线轮廓</p>
<p class="double">双线轮廓</p>
<p class="groove">凹槽轮廓</p>
<p class="ridge">垄状轮廓</p>
<p class="inset">嵌入轮廓</p>
<p class="outset">外凸轮廓</p>
</section>
<section style="background-color:white;">
<p>请把鼠标移动到单词上,可以看到鼠标指针发生变化:</p>
<span style="cursor:auto">auto</span><br>
<span style="cursor:crosshair">crosshair</span><br>
<span style="cursor:default">default</span><br>
<span style="cursor:e-resize">e-resize</span><br>
<span style="cursor:help">help</span><br>
<span style="cursor:move">move</span><br>
<span style="cursor:n-resize">n-resize</span><br>
<span style="cursor:ne-resize">ne-resize</span><br>
<span style="cursor:nw-resize">nw-resize</span><br>
<span style="cursor:pointer">pointer</span><br>
<span style="cursor:progress">progress</span><br>
<span style="cursor:s-resize">s-resize</span><br>
<span style="cursor:se-resize">se-resize</span><br>
<span style="cursor:sw-resize">sw-resize</span><br>
<span style="cursor:text">text</span><br>
<span style="cursor:w-resize">w-resize</span><br>
<span style="cursor:wait">wait</span><br>
</section>
</article>
<footer>
</footer>
</body>
</html>