質問編集履歴
4
htmlコードの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -44,7 +44,7 @@
|
|
44
44
|
|
45
45
|
|
46
46
|
|
47
|
-
<input id="TAB-01" type="radio" name="TAB" class="tab-switch">
|
47
|
+
<input id="TAB-01" type="radio" name="TAB" class="tab-switch" checked>
|
48
48
|
|
49
49
|
<label class="tab-label" for="TAB-01">タブA</label>
|
50
50
|
|
3
CSSの追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -77,3 +77,55 @@
|
|
77
77
|
</div>
|
78
78
|
|
79
79
|
```
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
```css
|
84
|
+
|
85
|
+
.tab-switch {
|
86
|
+
|
87
|
+
display: none;
|
88
|
+
|
89
|
+
}
|
90
|
+
|
91
|
+
.tab-wrap {
|
92
|
+
|
93
|
+
display: flex;
|
94
|
+
|
95
|
+
flex-wrap: wrap;
|
96
|
+
|
97
|
+
}
|
98
|
+
|
99
|
+
.tab-label {
|
100
|
+
|
101
|
+
order: -1;
|
102
|
+
|
103
|
+
position: relative;
|
104
|
+
|
105
|
+
z-index: 1;
|
106
|
+
|
107
|
+
}
|
108
|
+
|
109
|
+
.tab-content {
|
110
|
+
|
111
|
+
width: 100%;
|
112
|
+
|
113
|
+
height: 0;
|
114
|
+
|
115
|
+
overflow: hidden;
|
116
|
+
|
117
|
+
opacity: 0;
|
118
|
+
|
119
|
+
}
|
120
|
+
|
121
|
+
.tab-switch:checked+.tab-label+.tab-content {
|
122
|
+
|
123
|
+
height: auto;
|
124
|
+
|
125
|
+
overflow: auto;
|
126
|
+
|
127
|
+
opacity: 1;
|
128
|
+
|
129
|
+
}
|
130
|
+
|
131
|
+
```
|
2
タイトルの変更
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
リロード後もタブを維持する
|
1
|
+
リロード後もタブを維持する方法
|
test
CHANGED
File without changes
|
1
コードの誤記を修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -60,7 +60,7 @@
|
|
60
60
|
|
61
61
|
<input id="TAB-02" type="radio" name="TAB" class="tab-switch">
|
62
62
|
|
63
|
-
<label class="tab-label" for="TAB-0
|
63
|
+
<label class="tab-label" for="TAB-02">タブB</label>
|
64
64
|
|
65
65
|
<div class="tab-content">
|
66
66
|
|