移動端H5頁面禁止長按復制和去掉點擊時高亮


 

 

/*設置IOS頁面長按不可復制粘貼,但是IOS上出現input、textarea不能輸入,因此將使用-webkit-user-select:auto;*/  
*{  
    -webkit-touch-callout:none;  /*系統默認菜單被禁用*/  
    -webkit-user-select:none; /*webkit瀏覽器*/  
    -khtml-user-select:none; /*早期瀏覽器*/  
    -moz-user-select:none;/*火狐*/  
    -ms-user-select:none; /*IE10*/  
    user-select:none;  
} 
input,textarea {
    -webkit-user-select:auto; /*webkit瀏覽器*/
    margin: 0px;
    padding: 0px;
    outline: none;
}
*{ -webkit-tap-highlight-color: rgba(0,0,0,0);-webkit-tap-highlight-color: transparent; /* For some Androids */ }

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM