質問編集履歴
3
初心者マーク
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
CSSでのフッタ固定、スマフォ画面について
|
test
CHANGED
File without changes
|
2
微修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
URL:
|
2
|
+
|
1
3
|
[https://webkikaku.co.jp/blog/htmlcss/footer-bottom/](https://webkikaku.co.jp/blog/htmlcss/footer-bottom/)
|
2
4
|
|
3
5
|
|
1
リンクを貼り、画像のソースを入力しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,6 +1,70 @@
|
|
1
|
-
https://webkikaku.co.jp/blog/htmlcss/footer-bottom/
|
1
|
+
[https://webkikaku.co.jp/blog/htmlcss/footer-bottom/](https://webkikaku.co.jp/blog/htmlcss/footer-bottom/)
|
2
2
|
|
3
|
+
|
4
|
+
|
5
|
+
```HTML
|
6
|
+
|
7
|
+
<div id="container">
|
8
|
+
|
3
|
-
|
9
|
+
<div id="header">ヘッダー</div>
|
10
|
+
|
11
|
+
<div id="contents">コンテンツ</div>
|
12
|
+
|
13
|
+
<div id="footer">フッター</div>
|
14
|
+
|
15
|
+
</div>
|
16
|
+
|
17
|
+
```
|
18
|
+
|
19
|
+
```CSS
|
20
|
+
|
21
|
+
body , html {
|
22
|
+
|
23
|
+
height: 100%;
|
24
|
+
|
25
|
+
}
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
#container {
|
30
|
+
|
31
|
+
width: 100%;
|
32
|
+
|
33
|
+
position: relative;
|
34
|
+
|
35
|
+
height: auto !important;
|
36
|
+
|
37
|
+
height: 100%;
|
38
|
+
|
39
|
+
min-height: 100%;
|
40
|
+
|
41
|
+
}
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
#contents {
|
46
|
+
|
47
|
+
padding-bottom: 100px;
|
48
|
+
|
49
|
+
}
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
#footer {
|
54
|
+
|
55
|
+
position: fixed;
|
56
|
+
|
57
|
+
bottom: 0;
|
58
|
+
|
59
|
+
width: 100%;
|
60
|
+
|
61
|
+
height: 100px;
|
62
|
+
|
63
|
+
}
|
64
|
+
|
65
|
+
```
|
66
|
+
|
67
|
+
|
4
68
|
|
5
69
|
こちらのサイトで書かれている方法でcssでのフッタ固定をやったのですが、
|
6
70
|
|