开发者

Cocoa WebView font too small

When I add a WebView to my application the font size of web pages is a lot smaller than that in Safari. Is th开发者_StackOverflowere some reason?


Yes. You need to set the default font to 16px if you want the font size to match that of Safari. You can do this in Interface Builder.

You can also do it programmatically:

[[webView preferences] setDefaultFontSize:16];
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜