How to change the viewport on iPhone / iPad?

I have a canvas element with a width of 608 pixels, and I'm trying to enlarge the image of the iPhone and iPad so that it fills the screen.

I experimented with different values, but none of them work on both devices. Here's what I have right now (works on iPhone, but looks small on iPad):

<meta name="viewport" content="width=608; initial-scale=1.0; maximum-scale=1.0; user-scalable=no;" />

How can i achieve this?

+3
source share
2 answers

Having solved it, you need to make sure that the minimum and maximum scales are set correctly, because otherwise it is limited!

<meta name="viewport" content="width=608, maximum-scale=1.5, user-scalable=no" />
+3
source

You might want to try:

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

javascript , : http://menacingcloud.com/?c=viewportScale

0

All Articles