0

When looking at my website from a tablet, both header and footer are not covering the whole pagewidth. It is a pure CSS problem I assume, although not happening when browsing the site from a desktop PC (via Chrome for example).

I intend to have a full-page-width dark header and footer also on tablets (most importantly: iPad).

Any idea, what I would need to change to accomplish that?

Thank you & cheers, Ralph

4

2 回答 2

0

您应该定义一个视口。

<meta name="viewport" content="width=device-width" />

或者

<meta 
    name="viewport" 
    content="width=1000, initial-scale=0.8, maximum-scale=1.0" />

根据您的要求进行调整。

于 2013-04-28T18:14:39.023 回答
0

你可以设置

body { min-width: 1230px; }

它应该可以解决问题。

于 2013-04-28T18:17:32.807 回答