开发者

how to increase size of text in web view

i have a web view and i want t开发者_如何学JAVAo increase size of text in it when i press button ...


Try this:

[webView stringByEvaluatingJavaScriptFromString:@"document.body.style.zoom = '1.5';"]

This will zoom in all contents of the UIWebView by a factor 1.5.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜