回答編集履歴
1
コード追記
test
CHANGED
@@ -3,3 +3,43 @@
|
|
3
3
|
|
4
4
|
|
5
5
|
[[CSS]「display: contents;」がすごい便利!ラッパーを使った実装が大きく変わるこれからのテクニック | コリス](https://coliss.com/articles/build-websites/operation/work/how-to-work-display-contents.html)
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
```html
|
10
|
+
|
11
|
+
<div class="flex">
|
12
|
+
|
13
|
+
<div class="box">box1</div>
|
14
|
+
|
15
|
+
<div class="contents">
|
16
|
+
|
17
|
+
<div class="box">box2</div>
|
18
|
+
|
19
|
+
<div class="box">box3</div>
|
20
|
+
|
21
|
+
</div>
|
22
|
+
|
23
|
+
</div>
|
24
|
+
|
25
|
+
```
|
26
|
+
|
27
|
+
```css
|
28
|
+
|
29
|
+
.flex {
|
30
|
+
|
31
|
+
display: flex;
|
32
|
+
|
33
|
+
flex-wrap: wrap;
|
34
|
+
|
35
|
+
}
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
.flex .contents {
|
40
|
+
|
41
|
+
display: contents;
|
42
|
+
|
43
|
+
}
|
44
|
+
|
45
|
+
```
|