修改字体大小很简单,用到了js
- (IBAction)changeFont:(id)sender
{
NSString* str1 =[NSString stringWithFormat:@"document.getElementsByTagName('body')[0].style.webkitTextSizeAdjust= '%f%%'",20.0];
[_webView stringByEvaluatingJavaScriptFromString:str1];
}
修改字体大小很简单,用到了js