简体   繁体   English

iPhone 6页面显示一半宽度

[英]Iphone 6 page showing half width

I am trying to make my basic webpage responsive. 我正在尝试使我的基本网页具有响应能力。 I thought it was however on iPhone 6 the page only seems to render at half width. 我以为是在iPhone 6上,页面似乎只能以一半的宽度呈现。

Screenshot link 屏幕截图链接

I have tried various different meta tags and cant seem to fix it. 我尝试了各种不同的meta标签,但似乎无法修复。

I was having a lot of problems with the iPhone 6, I think because the device width and the pixel width are actually half of each other. 我认为iPhone 6存在很多问题,因为设备宽度和像素宽度实际上是彼此的一半。 ie the ppi is higeher, so if the scale is not set correctly it thinks the page is twice as wide. 即ppi较高,因此如果缩放比例设置不正确,它将认为页面的宽度是其两倍。

Anyway I think adding a minimum scale fixed my issue, here is my tag now 无论如何,我认为添加最小比例尺解决了我的问题,这是我的标签

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

You can check it on iPhone 6 if you like. 如果愿意,可以在iPhone 6上进行检查。
http://www.platonicsapp.com/ http://www.platonicsapp.com/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM