-
Notifications
You must be signed in to change notification settings - Fork 0
/
chia.html
112 lines (95 loc) · 3.19 KB
/
chia.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
<!DOCTYPE HTML>
<html>
<head>
<title>恰恰的網站</title>
<style>
<style>
div{
color: #f00;
font-size:72px;
}
img{width: 50%;
height: 50%;}
div {
margin: 4px ;
border: 2px rgb(58, 20, 148);
padding: 20px;
}
#chia-head{
background-color: aqua;
display: inline-block;
}
.baseball{
background-color: blueviolet;
display:inline-block;
}
.little-animation {
position: relative;
left: 0;
/* -外觀設定- */
background-color: red;
display: inline-block;
padding: 30px;
/* --------- */
}
.little-animation:hover {
left: 10%
}
div.little-animation:hover{
background-color:darkgray;
}
</style>
</head>
<button type="button" class="btn 1">1</button>
<button type="button" class="btn btn-secondary">Secondary</button>
<button type="button" class="btn btn-success">Success</button>
<button type="button" class="btn btn-danger">Danger</button>
<button type="button" class="btn btn-warning">Warning</button>
<button type="button" class="btn btn-info">Info</button>
<button type="button" class="btn btn-light">Light</button>
<button type="button" class="btn btn-dark">Dark</button>
<button type="button" class="btn btn-link">Link</button>
<body>
<h1>彭政閔</h1>
<p>歡迎想了解彭政閔的球迷~</p>
<img src ="C:\Users\dell\Desktop\project\23.jpg" />
<link rel="stylesheet" href="C:\Users\dell\Desktop\project\style.css">
<ul>
<li>我是棒球員</li>
<li>我的帳號</li>
<ul>
<a href="https://www.instagram.com/chia23_peng/?hl=zh-tw">chia23_peng</a>
<div id="chia-head" class="player">
<p>Some thing</p>
</div>
<div id="chia-body" class="baseball">
<p>Anothor thing </p>
</div>
<div class="little-animation">
<p>我是紅色盒盒</p>
</div>
</body>
<p id="text">0</p>
<button id="btn-1">Plus</button>
<button id="btn-2">2</button>
<script>
const ONE=1;
var vary=100;
console.log(ONE,vary)
function myFun(param){
for(var i=0;i<100;i++)
param--;
console.log("Hey!");
console.log("Hey!");
console.log(param);
return param;
}
myFun(10);
let a=0;
document.getElementById("btn-1");
onclick=(function(){
document.getElementById("text").innerText=a;
a++;
})
</script>
</html>