Mobile CSS Page width

跟風遠走 提交于 2019-11-27 22:08:33

问题


Trying pretty hard to make simple form page viewable in mobile devices. The form is viewable, just that I have to zoom in a lot to read it.

Hear is an example:

http://200.5.3.20/temp/PocketPC/dispatch.php


回答1:


You can add the meta viewport tag that will scale the page to the device width:

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

You can read up on it here too.




回答2:


Apart what jonezy used, meta viewport tag as below will also work:

<meta name="viewport" content="width=device-width, user-scalable=no">

It will not be scalable and fit to device width - for any device, iOS or Android.

Hope it helps!




回答3:


Use mobile doctype:

<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">


来源:https://stackoverflow.com/questions/5236326/mobile-css-page-width

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!