开发者

Scaling website to 100% width/height of visible area

how to make content of a web page fully scaled whatever the wi开发者_如何学Godth/height of the device visible portion is?


<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />

works as a meta tag as well, if you want to let users scale the site just do not use minimumscale, maximumscale and user-scalable attributes.


In iphone

webview.scalesPageToFit = YES;

All the best.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜