質問編集履歴
1
ページ
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,4 +1,260 @@
|
|
1
|
+
``<!DOCTYPE>
|
2
|
+
|
3
|
+
<html lang="ja">
|
4
|
+
|
5
|
+
<head>
|
6
|
+
|
7
|
+
<meta charset="UTF-8">
|
8
|
+
|
9
|
+
<title>EXAMPLE</title>
|
10
|
+
|
11
|
+
<style>
|
12
|
+
|
13
|
+
body{font-family: "Century Gothic", 'Lato', sans-serif;}
|
14
|
+
|
15
|
+
a {text-decoration: none;}
|
16
|
+
|
17
|
+
.et-hero-tabs,
|
18
|
+
|
19
|
+
.et-slide {
|
20
|
+
|
21
|
+
display: flex;
|
22
|
+
|
23
|
+
flex-direction: column;
|
24
|
+
|
25
|
+
justify-content: center;
|
26
|
+
|
27
|
+
align-items: center;
|
28
|
+
|
29
|
+
height: 100vh;
|
30
|
+
|
31
|
+
position: relative;
|
32
|
+
|
33
|
+
background: #eee;
|
34
|
+
|
35
|
+
text-align: center;
|
36
|
+
|
37
|
+
padding: 0 2em;
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
h1{font-size: 2rem;
|
42
|
+
|
43
|
+
margin: 0;
|
44
|
+
|
45
|
+
letter-spacing: 1rem;}
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
h3 {font-size: 1rem;
|
50
|
+
|
51
|
+
letter-spacing: 0.3rem;
|
52
|
+
|
53
|
+
opacity: 0.6;}
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
}
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
.et-hero-tabs-container {
|
62
|
+
|
63
|
+
display: flex;
|
64
|
+
|
65
|
+
flex-direction: row;
|
66
|
+
|
67
|
+
position: absolute;
|
68
|
+
|
69
|
+
bottom: 0;
|
70
|
+
|
71
|
+
width: 100%;
|
72
|
+
|
73
|
+
height: 70px;
|
74
|
+
|
75
|
+
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
|
76
|
+
|
77
|
+
background: #fff;
|
78
|
+
|
79
|
+
z-index: 10;
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
&--top {
|
84
|
+
|
85
|
+
position: fixed;
|
86
|
+
|
87
|
+
top:0;
|
88
|
+
|
89
|
+
}}
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
.et-hero-tab {
|
94
|
+
|
95
|
+
display: flex;
|
96
|
+
|
97
|
+
justify-content: center;
|
98
|
+
|
99
|
+
align-items: center;
|
100
|
+
|
101
|
+
flex: 1;
|
102
|
+
|
103
|
+
color: #000;
|
104
|
+
|
105
|
+
letter-spacing: 0.1rem;
|
106
|
+
|
107
|
+
transition: all 0.5s ease;
|
108
|
+
|
109
|
+
font-size: 0.8rem;
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
&:hover {
|
114
|
+
|
115
|
+
color:white;
|
116
|
+
|
117
|
+
background: rgba(102,177,241,0.8);
|
118
|
+
|
119
|
+
transition: all 0.5s ease;
|
120
|
+
|
121
|
+
}}
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
.et-hero-tab-slider {
|
126
|
+
|
127
|
+
position: absolute;
|
128
|
+
|
129
|
+
bottom: 0;
|
130
|
+
|
131
|
+
width: 0;
|
132
|
+
|
133
|
+
height: 6px;
|
134
|
+
|
135
|
+
background: #66B1F1;
|
136
|
+
|
137
|
+
transition: left 0.3s ease;}
|
138
|
+
|
139
|
+
@media (min-width: 800px) {
|
140
|
+
|
141
|
+
.et-hero-tabs,
|
142
|
+
|
143
|
+
.et-slide {
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
h1 {
|
148
|
+
|
149
|
+
font-size: 3rem;}
|
150
|
+
|
151
|
+
h3 {font-size: 1rem;}
|
152
|
+
|
153
|
+
}
|
154
|
+
|
155
|
+
.et-hero-tab {font-size: 1rem;}
|
156
|
+
|
157
|
+
}
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
</style>
|
162
|
+
|
163
|
+
</head>
|
164
|
+
|
165
|
+
<body>
|
166
|
+
|
167
|
+
<div class="cont">
|
168
|
+
|
169
|
+
<div class="slider"></div>
|
170
|
+
|
171
|
+
<ul class="nav"></div>
|
172
|
+
|
173
|
+
<div data-target='right' class="side-nav side-nav--right"></div>
|
174
|
+
|
175
|
+
<div data-target='left' class="side-nav side-nav--left"></div>
|
176
|
+
|
177
|
+
</div>
|
178
|
+
|
179
|
+
<!-- Hero -->
|
180
|
+
|
181
|
+
<section class="et-hero-tabs">
|
182
|
+
|
183
|
+
<h1>高校</h1>
|
184
|
+
|
185
|
+
<h3>みんなのページ</h3>
|
186
|
+
|
187
|
+
<div class="et-hero-tabs-container">
|
188
|
+
|
189
|
+
<a class="et-hero-tab" href="#tab-es6">1</a>
|
190
|
+
|
191
|
+
<a class="et-hero-tab" href="#tab-flexbox">2</a>
|
192
|
+
|
193
|
+
<a class="et-hero-tab" href="#tab-react">3</a>
|
194
|
+
|
195
|
+
<a class="et-hero-tab" href="#tab-angular">4</a>
|
196
|
+
|
197
|
+
<a class="et-hero-tab" href="#tab-other">5</a>
|
198
|
+
|
199
|
+
<span class="et-hero-tab-slider"></span>
|
200
|
+
|
201
|
+
</div>
|
202
|
+
|
203
|
+
</section>
|
204
|
+
|
205
|
+
<!-- Main -->
|
206
|
+
|
207
|
+
<main class="et-main">
|
208
|
+
|
209
|
+
<section class="et-slide" id="tab-es6">
|
210
|
+
|
211
|
+
<h1>1</h1>
|
212
|
+
|
213
|
+
<h3>something about es6</h3>
|
214
|
+
|
215
|
+
</section>
|
216
|
+
|
217
|
+
<section class="et-slide" id="tab-flexbox">
|
218
|
+
|
219
|
+
<h1>2</h1>
|
220
|
+
|
221
|
+
<h3>something about flexbox</h3>
|
222
|
+
|
223
|
+
</section>
|
224
|
+
|
225
|
+
<section class="et-slide" id="tab-react">
|
226
|
+
|
227
|
+
<h1>3</h1>
|
228
|
+
|
229
|
+
<h3>something about react</h3>
|
230
|
+
|
231
|
+
</section>
|
232
|
+
|
233
|
+
<section class="et-slide" id="tab-angular">
|
234
|
+
|
235
|
+
<h1>4</h1>
|
236
|
+
|
237
|
+
<h3>something about angular</h3>
|
238
|
+
|
239
|
+
</section>
|
240
|
+
|
241
|
+
<section class="et-slide" id="tab-other">
|
242
|
+
|
243
|
+
<h1>5</h1>
|
244
|
+
|
245
|
+
<h3>something about other</h3>
|
246
|
+
|
247
|
+
</section>
|
248
|
+
|
249
|
+
</main>
|
250
|
+
|
251
|
+
</body>
|
252
|
+
|
253
|
+
</html>`
|
254
|
+
|
255
|
+
コード
|
256
|
+
|
1
|
-
ホームページ作成時に下記のhtmlを書いたところ、「colon expected」や「{ expected」というエラーが出ました。
|
257
|
+
```ホームページ作成時に下記のhtmlを書いたところ、「colon expected」や「{ expected」というエラーが出ました。
|
2
258
|
|
3
259
|
このエラーは「●●を要求します」という意味だと思い、{やコロンをつけてみましたが、解決しません。全角スペースを探すと良いと調べたら出てきましたのでやってみましたが、わかりませんでした。
|
4
260
|
|