質問編集履歴
1
コードを追記しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -26,6 +26,184 @@
|
|
26
26
|
|
27
27
|
|
28
28
|
|
29
|
+
### 該当と思われるコード
|
30
|
+
|
31
|
+
```html
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
<!--index.html-->
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
<body>
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
<h1>テキストテキスト</h1>
|
44
|
+
|
45
|
+
<h2>テキストテキスト</h2>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div class="areaflex">
|
50
|
+
|
51
|
+
<a href="kanto.html#saitama"><div class="arealink">埼玉県</div></a>
|
52
|
+
|
53
|
+
<a href="kanto.html#tokyo"><div class="arealink">東京都</div></a>
|
54
|
+
|
55
|
+
<a href="kanto.html#tiba"><div class="arealink">千葉県</div></a>
|
56
|
+
|
57
|
+
<a href="kanto.html#ibaraki"><div class="arealink">茨城県</div></a>
|
58
|
+
|
59
|
+
<a href="kanto.html#kanagawa"><div class="arealink">神奈川県</div></a>
|
60
|
+
|
61
|
+
</div>
|
62
|
+
|
63
|
+
</body>
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
```
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
```html
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
<!--kanto.html-->
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<body>
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
<h1>テキストテキスト</h1>
|
84
|
+
|
85
|
+
<h2>関東エリア</h2>
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
<section id ="saitama">
|
90
|
+
|
91
|
+
<h3>埼玉県</h3>
|
92
|
+
|
93
|
+
<p>テキストテキストテキストテキスト</p>
|
94
|
+
|
95
|
+
</section>
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
<section id ="tokyo">
|
100
|
+
|
101
|
+
<h3>東京都</h3>
|
102
|
+
|
103
|
+
<p>テキストテキストテキストテキスト</p>
|
104
|
+
|
105
|
+
</section>
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
<section id ="tiba">
|
110
|
+
|
111
|
+
<h3>千葉県</h3>
|
112
|
+
|
113
|
+
<p>テキストテキストテキストテキスト</p>
|
114
|
+
|
115
|
+
</section>
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
</body>
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
```
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
```CSS
|
128
|
+
|
129
|
+
body{
|
130
|
+
|
131
|
+
max-width: 1024px;
|
132
|
+
|
133
|
+
margin: 0 auto;
|
134
|
+
|
135
|
+
overflow-x: hidden;
|
136
|
+
|
137
|
+
}
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
h2{
|
142
|
+
|
143
|
+
font-size: 24px;
|
144
|
+
|
145
|
+
color: #ffffff;
|
146
|
+
|
147
|
+
font-weight: bold;
|
148
|
+
|
149
|
+
background-color: #003300;
|
150
|
+
|
151
|
+
text-align: center;
|
152
|
+
|
153
|
+
margin: 0 -100% 0 -100%;
|
154
|
+
|
155
|
+
padding: 14px 100% 14px 100%;
|
156
|
+
|
157
|
+
}
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
.areaflex{
|
162
|
+
|
163
|
+
display: flex;
|
164
|
+
|
165
|
+
flex-wrap: wrap;
|
166
|
+
|
167
|
+
}
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
.arealink{
|
172
|
+
|
173
|
+
background-color: #003300;
|
174
|
+
|
175
|
+
width: 120px;
|
176
|
+
|
177
|
+
height: 48px;
|
178
|
+
|
179
|
+
color: #ffffff;
|
180
|
+
|
181
|
+
font-size: 18px;
|
182
|
+
|
183
|
+
text-align: center;
|
184
|
+
|
185
|
+
line-height: 48px;
|
186
|
+
|
187
|
+
border-radius: 6px;
|
188
|
+
|
189
|
+
margin: 6px 20px 20px 0;
|
190
|
+
|
191
|
+
transition: 240ms;
|
192
|
+
|
193
|
+
}
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
.arealink:hover{
|
198
|
+
|
199
|
+
background-color: #006600;
|
200
|
+
|
201
|
+
}
|
202
|
+
|
203
|
+
```
|
204
|
+
|
205
|
+
|
206
|
+
|
29
207
|
### 試したこと
|
30
208
|
|
31
209
|
|