File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html lang ="en ">
3
+ < head >
4
+ < meta charset ="UTF-8 ">
5
+ < title > 折叠式问答</ title >
6
+ < style >
7
+ .item {
8
+ border-bottom : 1px solid # ddd ;
9
+ margin : 5px 10px ;
10
+ }
11
+ .item-head {
12
+ display : flex;
13
+ align-items : center;
14
+ justify-content : space-between;
15
+ }
16
+ .item-answer {
17
+ display : none;
18
+ padding-left : 20px ;
19
+ font-size : 14px ;
20
+ }
21
+ .item-head .icon {
22
+ width : 32px ;
23
+ height : 32px ;
24
+ background : url (data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAZdJREFUWEftlDFLw0AYht/v6uCg4ODg4CDkLgTrIHRwcBAROjg4uJjODv4P/4KbuKuL4ODgIOogOjg4KKS9BBwcBB0cOkixPblyhVrSJmkT6pCM4e59n3u4+whj/mjM/cgBcgO5gf9lwPO86UKhcA2glNF8uG80GuVisVjv5P8xIKXcBXCUUXk7loj2OOeH/QAWAbxkCQBgXQhxEwqgfwZBsN1qtU4BTKQM8sMY27Es66w7N/QSSim3AGiIyZQgvgG4Qojz3ry+ryAIgk1jYmpEiLpSyrVt+yIsZ+AzlFKWjYmZISG+zMkv++2PnAPVanWDMXYCYDYhxCdjzLUs62rQvkgAvVlKuQZAQ8zFhHg3J7+NWh8LQIf4vr+qlNIQ8xGhb0Tkcs7vosrbcyHOos6aWq22ok0Q0ULohSJ6VUpVhBAPcXMTARgTJWOC95T4zWaz4jjOY9zyxAa6TCwT0TEAx/zz9Mlt235KUj40gDGxpJQ6APBBRPuc8+ek5SMBDFOWeBClVTLyHMgSJPErSBsmB8gNjN3AL7/pcCEIl6kWAAAAAElFTkSuQmCC);
25
+ transform : rotate (-180deg );
26
+ }
27
+ .item-head .icon .down {
28
+ transform : rotate (0deg );
29
+ }
30
+ .item-answer--show {
31
+ display : block;
32
+ }
33
+ </ style >
34
+ </ head >
35
+ < body >
36
+ < div class ="container ">
37
+ < div class ="item ">
38
+ < div class ="item-head ">
39
+ < div class ="title "> CSS如何实现样式的隔离</ div >
40
+ </ div >
41
+ < span class ="icon "> </ span >
42
+ </ div >
43
+ < div class ="item-answer "> ...</ div >
44
+ </ div >
45
+ < div class ="item ">
46
+ < div class ="title "> 设置元素水平和垂直居中的7种方法?</ div >
47
+ < span class ="icon down "> </ span >
48
+ </ div >
49
+ < div class ="item-answer item-answer--show ">
50
+ < p > flex...</ p >
51
+ < p > position...</ p >
52
+ </ div >
53
+ </ body >
54
+ </ html >
You can’t perform that action at this time.
0 commit comments