回答編集履歴

1

ソースを追加しました。

2021/05/26 08:12

投稿

tmsw
tmsw

スコア97

test CHANGED
@@ -13,3 +13,127 @@
13
13
 
14
14
 
15
15
  多分、今のCSSのままでは質問者様のブラウザではある程度普通に表示されてても、多くの利用者のブラウザで崩れた酷いページになってしまうと思いますよ。
16
+
17
+
18
+
19
+ 付け焼刃ではありますが、一応、こうすればある程度統一できるだろうと思われるCSSを下に乗せておくので参考にしていただけると良いかなと思います。
20
+
21
+
22
+
23
+ ```css
24
+
25
+
26
+
27
+ @media only screen and (min-width: 481px) {
28
+
29
+ #francecolle {
30
+
31
+ background: #ffffff url(../image/logo.png) no-repeat center;
32
+
33
+ height: 178px;
34
+
35
+ padding:0 0 200px 0;
36
+
37
+ margin:300px 0 0 0;
38
+
39
+ }
40
+
41
+ }
42
+
43
+
44
+
45
+
46
+
47
+ /*PC向け クロム*/
48
+
49
+ @media screen and (-webkit-min-device-pixel-ratio:0) {
50
+
51
+ #francecolle {
52
+
53
+ background: #ffffff url(../image/logo.png) no-repeat center;
54
+
55
+ height: 178px;
56
+
57
+ padding:0 0 350px 0;
58
+
59
+ margin:300px 0 0 0; /* 細かい数値が分からないので大雑把ですが300に変更。それでもまだ下に寄りすぎな場合は300から少しずつ数値を下げてください */
60
+
61
+ }
62
+
63
+ }
64
+
65
+
66
+
67
+
68
+
69
+ /*PC向け IE*/
70
+
71
+ @media all and (-ms-high-contrast:none) {
72
+
73
+ @media only screen and (min-width: 769px) {
74
+
75
+
76
+
77
+ *::-ms-backdrop, #francecolle {
78
+
79
+ background: #ffffff url(../image/logo.png) no-repeat center;
80
+
81
+ height: 178px;
82
+
83
+ padding:0 0 350px 0;
84
+
85
+ / * margin:100px 0 0 0; 上にマージンとってますがIEの物は下に行きすぎなのでこれは削除 */
86
+
87
+ }
88
+
89
+ }
90
+
91
+ }
92
+
93
+
94
+
95
+ /*PC向け エッジ*/
96
+
97
+ @media only screen and (min-width: 769px) {
98
+
99
+ #francecolle {
100
+
101
+ background: #ffffff url(../image/logo.png) no-repeat center;
102
+
103
+ height: 178px;
104
+
105
+ padding:0 0 350px 0;
106
+
107
+ margin:650px 0 0 0;
108
+
109
+ }
110
+
111
+ }
112
+
113
+
114
+
115
+ /*PC向け ファイアフォックス*/
116
+
117
+ @-moz-document url-prefix(){
118
+
119
+ @media only screen and (min-width: 769px) {
120
+
121
+ #francecolle {
122
+
123
+ background: #ffffff url(../image/logo.png) no-repeat center;
124
+
125
+ height: 178px;
126
+
127
+ padding:0 0 350px 0;
128
+
129
+ margin:650px 0 0 0;
130
+
131
+ }
132
+
133
+ }
134
+
135
+ }
136
+
137
+ コード
138
+
139
+ ```