質問編集履歴
1
大変失礼しました。html, cssはこのようになります。宜しくお願い致します。
test
CHANGED
File without changes
|
test
CHANGED
@@ -155,3 +155,95 @@
|
|
155
155
|
|
156
156
|
|
157
157
|
よろしくお願い致します。
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
###html
|
162
|
+
|
163
|
+
```
|
164
|
+
|
165
|
+
<html>
|
166
|
+
|
167
|
+
<body>
|
168
|
+
|
169
|
+
<header id="header">…</header>
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
<div id="main">
|
174
|
+
|
175
|
+
…かなり長めです。
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
<div><a href="https://....."><img src="img/floatingBNR.png"></a></div>
|
180
|
+
|
181
|
+
</div>
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
<footer id="footer">
|
186
|
+
|
187
|
+
<p class="pagetop"><a href="#"><img src="img/pagetop.gif" width="56" height="72" alt="ページトップへ"></a></p>
|
188
|
+
|
189
|
+
<div class="contentIn">
|
190
|
+
|
191
|
+
<p>© 2018 〇〇 INC., All Rights Reserved</p>
|
192
|
+
|
193
|
+
</div>
|
194
|
+
|
195
|
+
</footer>
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
<div id="Floating">
|
200
|
+
|
201
|
+
<a href="https://....."><img src="img/floatingBNR.png"></a>
|
202
|
+
|
203
|
+
</div>
|
204
|
+
|
205
|
+
</body>
|
206
|
+
|
207
|
+
</html>
|
208
|
+
|
209
|
+
```
|
210
|
+
|
211
|
+
###css
|
212
|
+
|
213
|
+
```
|
214
|
+
|
215
|
+
#Floating {
|
216
|
+
|
217
|
+
display: block;
|
218
|
+
|
219
|
+
width: 100%;
|
220
|
+
|
221
|
+
position: fixed;
|
222
|
+
|
223
|
+
left: 0px;
|
224
|
+
|
225
|
+
bottom: 2px;
|
226
|
+
|
227
|
+
z-index: 999;
|
228
|
+
|
229
|
+
text-align: center;
|
230
|
+
|
231
|
+
margin: 0 auto;
|
232
|
+
|
233
|
+
}
|
234
|
+
|
235
|
+
#Floating img {
|
236
|
+
|
237
|
+
max-width: 99%;
|
238
|
+
|
239
|
+
}
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
@media screen and (max-width:767px) {
|
244
|
+
|
245
|
+
#Floating img {max-width: 92%;}
|
246
|
+
|
247
|
+
}
|
248
|
+
|
249
|
+
```
|