页面里如果网页的字体偏小,可以通过webview的delegate中调用js 略微放大
func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {
webView.evaluateJavaScript("document.getElementsByTagName('body')[0].style.webkitTextSizeAdjust= '200%'")
}
页面里如果网页的字体偏小,可以通过webview的delegate中调用js 略微放大
func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {
webView.evaluateJavaScript("document.getElementsByTagName('body')[0].style.webkitTextSizeAdjust= '200%'")
}