开发者

Scaling website to 100% width/height of visible area

开发者 https://www.devze.com 2023-01-19 12:17 出处:网络
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,maxim

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

精彩评论

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