2013-03-11 77 views

回答

2
html { 
-webkit-user-select: none; 
} 

這個小成分在你的css代碼中會做到神奇!

+0

我使用這個響應以及@Suhas -webkit-touch-callout並且它工作得很好...爲兩個投票... – agfa555 2015-05-21 10:58:07

3

這會爲你工作: -

<style type="text/css"> 
    *:not(input):not(textarea) { 
    -webkit-user-select: none; /* disable selection/Copy of UIWebView */ 
    -webkit-touch-callout: none; /* disable the IOS popup when long-press on a link */ 
    }  
</style> 

使用Java腳本: -

document.documentElement.style.webkitTouchCallout = "none"; 
document.documentElement.style.webkitUserSelect = "none"; 
相關問題