-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.html
More file actions
135 lines (133 loc) · 2.37 KB
/
Copy pathtest.html
File metadata and controls
135 lines (133 loc) · 2.37 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<style>
.display-test h1{
display:run-in;
}
.circle{
width:100px;
height:100px;
position:absolute;
left:100px;
top:100px;
background-color:violet;
-webkit-border-radius:50%;
-moz-border-radius:50%;
-ms-border-radius:50%;
-o-border-radius:50%;
border-radius:50%;
-webkit-transition:all 1s linear;
-moz-transition:all 1s linear;
-ms-transition:all 1s linear;
-o-transition:all 1s linear;
transition:all 1s linear;
}
.container{
width:1170px;
padding-left:15px;
padding-right:15px;
margin-left:auto;
margin-right:auto;
border:1px solid black;
}
.row{
margin-left:-15px;
margin-right:-15px;
}
.xx-small{
font-size:xx-small;
}
.x-small{
font-size:x-small;
}
.small{
font-size:small;
}
.medium{
font-size:medium;
}
.xx-large{
font-size:xx-large;
}
.x-large{
font-size:x-large;
}
.large{
font-size:large;
}
.grad-test{
width:200px;
height:200px;
background:linear-gradient(45deg, #007d78 50%, #ff9300 50%)
}
</style>
<script>
window.onload=function(){
var circle=document.getElementById("circle");
var btn=document.getElementById("btn");
var clicked=false;
btn.onclick=function(){
if(!clicked){
circle.style.left="200px";
circle.style.top="200px";
clicked=!clicked;
}else{
circle.style.left="100px";
circle.style.top="100px";
clicked=!clicked;
}
}
}
</script>
</head>
<body>
<div style="display:none;" class="display-test">
<h1>
This is H1
</h1>
<p>
This is paragraph
</p>
<button id="btn">点击</button>
<div id="circle" class="circle">
</div>
</div>
<div class="container">
<div>
This is a div
</div>
<div class="row">
This is a row
</div>
</div>
<!-- <div> -->
<summary>This is summary</summary>
<details>This is details</details>
<!-- </div> -->
<div class="xx-small">
xx-small
</div>
<div class="x-small">
x-small
</div>
<div class="small">
small
</div>
<div class="medium">
medium
</div>
<div class="xx-large">
xx-large
</div>
<div class="x-large">
x-large
</div>
<div class="large">
large
</div>
<div class="grad-test">
</div>
</body>
</html>