Note that there are some explanatory texts on larger screens.

plurals
  1. POjQuery mobile pages super large in Safari mobile
    text
    copied!<p>I'm trying to fix a display issue on my jQuery mobile site. It looks great in other browsers but when viewed on the iPhone in Safari, everything is super large and you cannot shrink the page with pinch.</p> <p>For example a simple h2 element takes up most of the screen.</p> <pre><code> &lt;meta name="viewport" content="width=device-width; height=device-height; user-scalable=no" /&gt; </code></pre> <p> </p> <pre><code> &lt;title&gt;Start&lt;/title&gt; &lt;meta name="viewport" content="width=device-width; height=device-height; user-scalable=yes" /&gt; &lt;link rel="stylesheet" href="/static/css/android.css" /&gt; &lt;link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.css" /&gt; &lt;script src="https://www.google.com/jsapi?key=ABQIAAAApPeof0WyN6ORT7NeNop5OxQhS8mdepxW5-6qUjpskYmhafYcLRQjyW8D0bRdsydbD1maEkV9aSDKrw" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; // Check for iPhone screen size if($.mobile.media("screen and (min-width: 320px)")) { // Check for iPhone4 Retina Display if($.mobile.media("screen and (-webkit-min-device-pixel-ratio: 2)")) { $('meta[name=viewport]').attr('content','width=device-width, user-scalable=no,initial-scale=.5, maximum-scale=.5, minimum-scale=.5'); } } &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div data-role="page" id="start"&gt; &lt;div data-role="header" data-theme="a"&gt; &lt;h1&gt;Start&lt;/h1&gt; &lt;/div&gt;&lt;!-- /header --&gt; &lt;div data-role="content" id="content"&gt; &lt;h2&gt;Adventure with:&lt;/h2&gt; &lt;div id="buttons"&gt; &lt;a href="/mobile/char/ahBkMjBtLW1vcm5pbmdzdGFycg8" data-role="button" target="_blank"&gt;Spam Master&lt;/a&gt; &lt;a href="/mobile/char/create" data-role="button" target="_blank"&gt;CREATE NEW FOO&lt;/a&gt; &lt;/div&gt;&lt;!-- /buttons --&gt; &lt;/div&gt;&lt;!-- /content --&gt; &lt;/div&gt;&lt;!-- /page --&gt; &lt;/body&gt; </code></pre> <p> </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload