質問編集履歴
1
コードの編集
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
前提・実現したいこと
|
1
|
+
```前提・実現したいこと
|
2
2
|
|
3
3
|
|
4
4
|
|
@@ -74,6 +74,178 @@
|
|
74
74
|
|
75
75
|
|
76
76
|
|
77
|
+
```CSS
|
78
|
+
|
79
|
+
.tabmenu{
|
80
|
+
|
81
|
+
padding: 0 0;
|
82
|
+
|
83
|
+
margin: 0 auto;
|
84
|
+
|
85
|
+
}
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
.tab-btn {
|
90
|
+
|
91
|
+
display: flex;
|
92
|
+
|
93
|
+
text-align: center;
|
94
|
+
|
95
|
+
margin: 0 auto !important;
|
96
|
+
|
97
|
+
font-size: 13px;
|
98
|
+
|
99
|
+
}
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
.tab-item{
|
104
|
+
|
105
|
+
padding: 10px 30px ;
|
106
|
+
|
107
|
+
width: 30%;
|
108
|
+
|
109
|
+
border-left: 1px solid #803f3f;
|
110
|
+
|
111
|
+
background-color: #F2DDBC;
|
112
|
+
|
113
|
+
}
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
.tab-item:nth-child(1){
|
118
|
+
|
119
|
+
border-left: none;
|
120
|
+
|
121
|
+
}
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
.tab-link {
|
126
|
+
|
127
|
+
position: relative;
|
128
|
+
|
129
|
+
display: block;
|
130
|
+
|
131
|
+
color: #333;
|
132
|
+
|
133
|
+
cursor: pointer;
|
134
|
+
|
135
|
+
font-family: 'M PLUS Rounded 1c', sans-serif;
|
136
|
+
|
137
|
+
}
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
.tab-link::before {
|
142
|
+
|
143
|
+
content: '';
|
144
|
+
|
145
|
+
position: absolute;
|
146
|
+
|
147
|
+
bottom: 0;
|
148
|
+
|
149
|
+
right: 50%;
|
150
|
+
|
151
|
+
width: 0;
|
152
|
+
|
153
|
+
height: 2px;
|
154
|
+
|
155
|
+
background-color: #803f3f;
|
156
|
+
|
157
|
+
transition: all 0.4s ease-out;
|
158
|
+
|
159
|
+
}
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
.tab-link::after {
|
164
|
+
|
165
|
+
content: '';
|
166
|
+
|
167
|
+
position: absolute;
|
168
|
+
|
169
|
+
bottom: 0;
|
170
|
+
|
171
|
+
left: 50%;
|
172
|
+
|
173
|
+
width: 0;
|
174
|
+
|
175
|
+
height: 2px;
|
176
|
+
|
177
|
+
background-color: #803f3f;
|
178
|
+
|
179
|
+
transition: all 0.4s ease-out;
|
180
|
+
|
181
|
+
}
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
.tab-link.on::before {
|
186
|
+
|
187
|
+
width: 50%;
|
188
|
+
|
189
|
+
}
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
.tab-link.on::after {
|
194
|
+
|
195
|
+
width: 50%;
|
196
|
+
|
197
|
+
}
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
.tab-content {
|
202
|
+
|
203
|
+
width: 80%;
|
204
|
+
|
205
|
+
position: relative;
|
206
|
+
|
207
|
+
margin: 15px auto 30px auto;
|
208
|
+
|
209
|
+
}
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
.tab-content-item {
|
214
|
+
|
215
|
+
width: 100%;
|
216
|
+
|
217
|
+
opacity: 0;
|
218
|
+
|
219
|
+
transition: all 0.6s ease-out;
|
220
|
+
|
221
|
+
display: block;
|
222
|
+
|
223
|
+
margin: 0 auto;
|
224
|
+
|
225
|
+
}
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
.tab-content-item.on {
|
230
|
+
|
231
|
+
opacity: 1;
|
232
|
+
|
233
|
+
background: #803f3f;
|
234
|
+
|
235
|
+
}
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
.content-img{
|
240
|
+
|
241
|
+
margin: 0 auto;
|
242
|
+
|
243
|
+
}
|
244
|
+
|
245
|
+
コード
|
246
|
+
|
247
|
+
```
|
248
|
+
|
77
249
|
Js
|
78
250
|
|
79
251
|
const carousel = $('.tab-content-item')
|