原文链接 我们可以添加些脚本到这个用户配置中,这启发了我 - ( WKWebView *)webView{ if (!_webView) { //创建WKWebview配置对象 WKWebViewConfiguration *config = [[ WKWebViewConfiguration alloc] init]; config.preferences = [[ WKPreferences alloc] init]; config.preferences.minimumFontSize = 10 ; config.preferences.javaScriptEnabled = YES ; config.preferences.javaScriptCanOpenWindowsAutomatically = NO ; NSMutableString *javascript = [ NSMutableString string]; [javascript appendString: @"document.documentElement.style.webkitTouchCallout='none';" ]; //禁止长按 [javascript appendString: @"document.documentElement.style.webkitUserSelect='none';" ]; //禁止选择 WKUserScript *noneSelectScript = [[ WKUserScript alloc] initWithSource:javascript injectionTime: WKUserScriptInjectionTimeAtDocumentEnd forMainFrameOnly: YES ]; //创建webView WKWebView *webView = [[ WKWebView alloc]initWit...