开发者

how to increase size of text in web view

开发者 https://www.devze.com 2023-01-13 18:23 出处:网络
i have a web view and i want t开发者_如何学JAVAo increase size of text in it when i press button ...Try this:

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

精彩评论

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