-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy pathuserinterface.html
94 lines (77 loc) · 2.32 KB
/
userinterface.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>UI | www.waylau.com</title>
<meta name="description" content="UI">
<meta name="author" content="Way Lau, www.waylau.com"/>
<meta name="viewport" content="width=device-width">
<link rel="shortcut icon" href="/favicon.ico">
<style>
.div-both {
border: 1px solid green;
margin-top: 20px;
padding: 15px 30px;
width: 250px;
resize: both;
overflow: auto;
}
.div-horizontal {
border: 1px solid green;
margin-top: 20px;
padding: 15px 30px;
width: 250px;
resize: horizontal;
overflow: auto;
}
.div-vertical {
border: 1px solid green;
margin-top: 20px;
padding: 15px 30px;
width: 250px;
resize: vertical;
overflow: auto;
}
.box-sizing {
box-sizing: border-box;
-moz-box-sizing: border-box; /* Firefox */
width: 50%;
border: 1em solid red;
float: left;
}
.outline-offset {
width: 180px;
height: 80px;
border: 1px solid red;
outline: 1px solid green;
outline-offset: 20px;
}
.round-outline-offset {
width: 180px;
height: 80px;
border: 1px solid red;
outline: 1px solid green;
outline-offset: 20px;
border-radius: 15px; /* W3C syntax */
}
</style>
</head>
<body>
<h1>resize 属性:</h1>
<div class="div-both">This div is stretchable from both corner (Horizontal & Vertical).</div>
<div class="div-horizontal">This div is stretchable from horizontal corner.</div>
<div class="div-vertical">This div is stretchable from vertical corner.</div>
<h1>box-sizing 属性:</h1>
<div class="container">
<div class="box">This div occupies the left half.</div>
<div class="box-sizing">This div occupies the right half.</div>
</div>
<h1>outline-offset 属性:</h1>
<div class="outline-offset">
This div is containing the outline offset of 20 px.
</div>
<div class="round-outline-offset">
This div is containing the outline offset of 20 px.
</div>
</body>
</html>