回答編集履歴
2
chousei
test
CHANGED
@@ -229,3 +229,5 @@
|
|
229
229
|
test
|
230
230
|
|
231
231
|
```
|
232
|
+
|
233
|
+
※更新されていなかったので再更新
|
1
調整
test
CHANGED
@@ -117,3 +117,115 @@
|
|
117
117
|
test
|
118
118
|
|
119
119
|
```
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
# 調整
|
124
|
+
|
125
|
+
```css
|
126
|
+
|
127
|
+
<style>
|
128
|
+
|
129
|
+
div.wrap{
|
130
|
+
|
131
|
+
height:150px;
|
132
|
+
|
133
|
+
}
|
134
|
+
|
135
|
+
[type=radio]#a,[type=radio]#bc{
|
136
|
+
|
137
|
+
display:none;
|
138
|
+
|
139
|
+
}
|
140
|
+
|
141
|
+
[type=radio]#bc:not(:checked) ~ .wrap label.a,
|
142
|
+
|
143
|
+
[type=radio]#a:not(:checked) ~ .wrap label.bc{
|
144
|
+
|
145
|
+
display:none;
|
146
|
+
|
147
|
+
}
|
148
|
+
|
149
|
+
[type=radio]#a:checked ~ .wrap label.bc img.b{
|
150
|
+
|
151
|
+
animation: anime1 2s infinite;
|
152
|
+
|
153
|
+
}
|
154
|
+
|
155
|
+
[type=radio]#a:checked ~ .wrap label.bc img.c{
|
156
|
+
|
157
|
+
nimation: anime2 2s infinite;
|
158
|
+
|
159
|
+
}
|
160
|
+
|
161
|
+
label.bc img{
|
162
|
+
|
163
|
+
position:absolute;
|
164
|
+
|
165
|
+
}
|
166
|
+
|
167
|
+
@keyframes anime1{
|
168
|
+
|
169
|
+
from,50%{ z-index: 1;}
|
170
|
+
|
171
|
+
50.1%,to{ z-index: 0; }
|
172
|
+
|
173
|
+
}
|
174
|
+
|
175
|
+
@keyframes anime2{
|
176
|
+
|
177
|
+
from,50%{ z-index: 0;}
|
178
|
+
|
179
|
+
50.1%,to{ z-index: 1; }
|
180
|
+
|
181
|
+
}
|
182
|
+
|
183
|
+
</style>
|
184
|
+
|
185
|
+
test
|
186
|
+
|
187
|
+
<input type="radio" name="abc1" value="a" id="a" class="a">
|
188
|
+
|
189
|
+
<input type="radio" name="abc1" value="bc" id="bc" class="bc" checked>
|
190
|
+
|
191
|
+
<div class="wrap">
|
192
|
+
|
193
|
+
<label for="a" class="a">
|
194
|
+
|
195
|
+
<img src="https://placehold.jp/ff0000/00ffff/150x150.png?text=A">
|
196
|
+
|
197
|
+
</label>
|
198
|
+
|
199
|
+
<label for="bc" class="bc">
|
200
|
+
|
201
|
+
<img src="https://placehold.jp/00ff00/ff00ff/150x150.png?text=B" class="b">
|
202
|
+
|
203
|
+
<img src="https://placehold.jp/0000ff/ffff00/150x150.png?text=C" class="c">
|
204
|
+
|
205
|
+
</label>
|
206
|
+
|
207
|
+
</div>
|
208
|
+
|
209
|
+
test
|
210
|
+
|
211
|
+
<div class="wrap">
|
212
|
+
|
213
|
+
<label for="a" class="a">
|
214
|
+
|
215
|
+
<img src="https://placehold.jp/ff0000/00ffff/150x150.png?text=A">
|
216
|
+
|
217
|
+
</label>
|
218
|
+
|
219
|
+
<label for="bc" class="bc">
|
220
|
+
|
221
|
+
<img src="https://placehold.jp/00ff00/ff00ff/150x150.png?text=B" class="b">
|
222
|
+
|
223
|
+
<img src="https://placehold.jp/0000ff/ffff00/150x150.png?text=C" class="c">
|
224
|
+
|
225
|
+
</label>
|
226
|
+
|
227
|
+
</div>
|
228
|
+
|
229
|
+
test
|
230
|
+
|
231
|
+
```
|