質問編集履歴
1
コードを記載いたしました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -11,3 +11,81 @@
|
|
11
11
|
|
12
12
|
|
13
13
|
よろしくお願いいたします。
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
コードは、下記のように記載してあります。
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
```html
|
26
|
+
|
27
|
+
<section>○○○</section>
|
28
|
+
|
29
|
+
```
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
```css
|
36
|
+
|
37
|
+
section {
|
38
|
+
|
39
|
+
position: relative;
|
40
|
+
|
41
|
+
}
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
section::before {
|
46
|
+
|
47
|
+
content: '';
|
48
|
+
|
49
|
+
clip-path: polygon(0 0, 100% 0%, 100% 0%, 0 100%);
|
50
|
+
|
51
|
+
background: #FFF;
|
52
|
+
|
53
|
+
width: 100%;
|
54
|
+
|
55
|
+
height: 100px;
|
56
|
+
|
57
|
+
position: absolute;
|
58
|
+
|
59
|
+
top: -1px;
|
60
|
+
|
61
|
+
left: 0;
|
62
|
+
|
63
|
+
}
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
section.middle::after {
|
68
|
+
|
69
|
+
content: '';
|
70
|
+
|
71
|
+
clip-path: polygon(0 0, 100% 99%, 100% 100%, 0 100%);
|
72
|
+
|
73
|
+
background: #FFF;
|
74
|
+
|
75
|
+
width: 100%;
|
76
|
+
|
77
|
+
height: 100px;
|
78
|
+
|
79
|
+
position: absolute;
|
80
|
+
|
81
|
+
top: auto;
|
82
|
+
|
83
|
+
bottom: -1px;
|
84
|
+
|
85
|
+
left: 0;
|
86
|
+
|
87
|
+
z-index: 1000;
|
88
|
+
|
89
|
+
}
|
90
|
+
|
91
|
+
```
|