-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_collapse copy.html
150 lines (123 loc) · 4.57 KB
/
test_collapse copy.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Collapse 測試版2 OK!!!</title>
<!-- 連結主要的css檔 -->
<!-- <link rel="stylesheet" href="./Vtuber_main.css"> -->
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css"
integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
<!-- Google font -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Kaisei+Opti:wght@400;500;700&family=Noto+Sans+TC:wght@100;300;400;500;700;900&display=swap"
rel="stylesheet">
<!-- Fontawesome -->
<link rel="stylesheet" href="./fontawesome/css/all.css">
<style>
.wrapper {
display: flex;
/* padding-top: 50px; */
justify-content: center;
}
.collapsible {
/* max-width: 450px; */
width: 80%;
overflow: hidden;
font-weight: 500;
}
.collapsible input {
display: none;
}
.collapsible label {
font-size: 20px;
position: relative;
font-weight: 600;
background: #aaa;
/* box-shadow: 0 5px 11px 0 rgba(0, 0, 0, .1), 0 4px 11px 0 rgba(0, 0, 0, .08); */
color: #fff;
display: block;
margin-bottom: 10px;
cursor: pointer;
padding: 10px;
border-bottom: 2px solid #D3B572;
z-index: 1;
}
.collapsible label:after {
content: "";
position: absolute;
right: 15px;
top: 15px;
width: 18px;
height: 18px;
background: url(./icons/angle-down-solid.svg) no-repeat 0 0;
transition: all 0.3s ease;
}
.collapsible input:checked + label:after {
transform: rotate(180deg);
}
.collapsible-text {
min-height: 1px;
overflow: hidden;
/* border-radius: 4px; */
/* line-height: 1.4; */
position: relative;
top: -100%;
opacity: .5;
transition: all 0.3s ease;
}
.collapsible-text p {
font-size: 20px;
}
.collapsible input:checked ~ .collapsible-text {
/* outline: 1px solid red; */
max-height: 300px;
padding-top: 10px;
padding-bottom: 20px;
/* background: #fff; */
/* box-shadow: 0 5px 11px 0 rgba(0, 0, 0, .1), 0 4px 11px 0 rgba(0, 0, 0, .08); */
opacity: 1;
top: 0;
}
.collapsible-text p {
padding-left: 10px;
padding-right: 10px;
}
</style>
</head>
<body>
<div class="wrapper">
<div class="collapsible">
<input type="checkbox" id="collapsible-head1">
<label for="collapsible-head1">Q1:金幣禮包購買流程?</label>
<div class="collapsible-text">
<p>點選欲購買的禮包→選擇支付方式→完成禮包購買→成立購買訂單→寄送信箱確認信</p>
</div>
</div>
</div>
<div class="wrapper">
<div class="collapsible">
<input type="checkbox" id="collapsible-head2">
<label for="collapsible-head2">Q2:購買金幣禮包的支付方式?</label>
<div class="collapsible-text">
<p>您可以選擇信用卡支付,或選擇第三方支付平台(LINE Pay, Apple Pay)購買金幣禮包</p>
</div>
</div>
</div>
<div class="wrapper">
<div class="collapsible">
<input type="checkbox" id="collapsible-head3">
<label for="collapsible-head3">Q3:信用卡付款注意事項?</label>
<div class="collapsible-text">
<p>目前接受台灣地區及國外發行的VISA、MASTERCARD、JCB、美國運通、聯合信用卡及銀聯卡,使用上依實際授權為主</p>
</div>
</div>
</div>
<script src="./js/jquery-3.6.0.js"></script>
<script src="./bootstrap-4.2.1-dist/js/bootstrap.bundle.js"></script>
</body>
</html>