How can I set my viewport on my desktop (while developing my app) to the iPhone screen size, without touching the CSS?
I’m developing my app with jQueryMobile.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The old-fashioned definition of the viewport (before scaling and the
viewportmeta tag became common with the iPhone) is just the size of thehtmlelement. So you can just style it as follows:Alternatively, use a browser extension (like the “Web Developer Toolbar” for Firefox to resize your browser window to the size you want your viewport to have.