web JS语句

来源:互联网 发布:python 按行读取文件 编辑:程序博客网 时间:2024/06/02 00:56

改变web字体大小 : document.getElementsByTagName('body')[0].style.webkitTextSizeAdjust= '%d%%'


NSString *jsString = [[NSStringalloc] initWithFormat:@"document.getElementsByTagName('body')[0].style.webkitTextSizeAdjust= '%d%%'", [[NSUserDefaultsstandardUserDefaults] integerForKey:HTWEBTEXT_FONT]];

[webView stringByEvaluatingJavaScriptFromString:jsString];

0 0
原创粉丝点击