开发者

Getting the height of HTML Content

开发者 https://www.devze.com 2023-01-09 03:05 出处:网络
I am loading an html file in to an UIWebView. Now I want to know t开发者_开发百科hat is there any way I can get height of the contents being load in the UIWebView?

I am loading an html file in to an UIWebView. Now I want to know t开发者_开发百科hat is there any way I can get height of the contents being load in the UIWebView?

Thanks in advance


[[webView stringByEvaluatingJavaScriptFromString:@"document.body.offsetHeight"] integerValue];

Try this site for document.body.offsetHeight alternatives. The best choice probably depends on your page, what you want to measure and when you are measuring.

0

精彩评论

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