1. 程式人生 > >ios webview螢幕適配

ios webview螢幕適配

  NSString* str1 =[NSString stringWithFormat:@"document.getElementsByTagName('body')[0].style.webkitTextSizeAdjust= '%f%%'",70.0f];
    [_webView stringByEvaluatingJavaScriptFromString:str1];