-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweb2.html
83 lines (71 loc) · 1.89 KB
/
web2.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>
<body>
<style type="text/css">
p.flower {background-image: url(C:/Users/Administrator\Desktop/壁纸/34739a504fc2d5620b2f8ce3e51190ef76c66c60.jpg); padding: 20px;}
</style>
<form>
First name:<br>
<input type="text" name="firstname">
<br>
Last name:<br>
<input type="text" name="lastname">
<br>
PASSWORD:<br>
<input type="password" name="psw">
</form>
<form action="/demo/demo_form.asp">
<select name="cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="fiat">Fiat</option>
<option value="audi">Audi</option>
</select>
<br><br>
<input type="submit"><!--提交表单的按钮-->
</form>
<form action="/demo/demo_form.asp">
<input type="radio" name="sex" value="male" checked>Male
<br>
<input type="radio" name="sex" value="female">Female
<br><br>
<input type="submit">
</form>
<form>
<input type="checkbox" name="vehicle" value="Bike">I have a bike
<br>
<input type="checkbox" name="vehicle" value="Car">I have a car
</form>
<form>
Quantity (between 1 and 5):
<input type="number" name="quantity" min="1" max="5">
</form>
<br>
<form action="/demo/demo_form.asp">
生日:
<input type="date" name="bday" max="1979-12-31">
<input type="submit">
</form>
<br>
<textarea name="message" rows="10" cols="30" >
The cat was playing in the garden.
</textarea>
<br>
<button type="button" onclick="alert('Hello World!')">点击我!</button>
<br>
<canvas id="myCanvas" width="200" height="100" style="border:1px solid #c3c3c3;">
Your browser does not support the canvas element.
</canvas>
<script type="text/javascript">
var c=document.getElementById("myCanvas");
var cxt=c.getContext("2d");
var grd=cxt.createLinearGradient(0,0,175,50);
grd.addColorStop(0,"#FF0000");
grd.addColorStop(1,"#00FF00");
cxt.fillStyle=grd;
cxt.fillRect(0,0,175,50);
</script>
<p class="flower">请注意表单本身是不可见的。</p>
<p>同时请注意文本字段的默认宽度是 20 个字符。</p>
</body>
</html>