苹果有介绍:
可以在css里设定:
或者在object-c里设置,在网页加载完成webViewDidFinishLoad时:
前者适合自己控制的网页,不用改app,后者就适合所有的网页了。
https://developer.apple.co...
原创内容如转载请注明:来自 阿权的书房
引用
-webkit-touch-callout
Disables the default callout shown when you touch and hold a touch target.
Syntax
-webkit-touch-callout: behavior;
Disables the default callout shown when you touch and hold a touch target.
Syntax
-webkit-touch-callout: behavior;
可以在css里设定:
body{margin:0;padding:0;-webkit-touch-callout:none;}
或者在object-c里设置,在网页加载完成webViewDidFinishLoad时:
[webView stringByEvaluatingJavaScriptFromString:@"document.body.style.webkitTouchCallout='none';"];
前者适合自己控制的网页,不用改app,后者就适合所有的网页了。
https://developer.apple.co...
原创内容如转载请注明:来自 阿权的书房
收藏本文到网摘