谷歌/ iPhone输出不同,iphone有很多空白区域

时间:2016-01-28 08:47:56

标签: html css iphone viewport

Viewport似乎没有正确地在我的手机上工作,我不确定为什么它开始缩小,沿着右侧的一堆空白区域屏幕(但在Google模拟器上按预期显示)。

<meta name="viewport" content="width=device-width, user-scalable=yes, initial-scale=1" />

Iphone输出

iphone image

Google Iphone

enter image description here

网站地址 - http://foodmachineryaustralasia.co.nz/

2 个答案:

答案 0 :(得分:1)

尝试将以下内容添加到CSS:

html, body {
  height: 100%;
  overflow-x: hidden;
}

答案 1 :(得分:1)

尝试这个

<meta name="viewport" content="width=device-width, initial-scale=1.0">