开发者

Mobile CSS Page width

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


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.


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!


Use mobile doctype:

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜