Disabling text selection in PhoneGap

后端 未结 9 883
伪装坚强ぢ
伪装坚强ぢ 2020-12-02 14:14

Is it possible to disable text selection to make a PhoneGap app more similar to normal native app?

Something like this:



        
9条回答
  •  不思量自难忘°
    2020-12-02 15:11

    * {
        -webkit-touch-callout: none;
        -webkit-user-select: none; 
    }
    
    [contenteditable="true"] , input, textarea {
        -webkit-user-select: auto !important;
        -khtml-user-select: auto !important;
        -moz-user-select: auto !important;
        -ms-user-select: auto !important;
        -o-user-select: auto !important;
        user-select: auto !important;  
    }
    

提交回复
热议问题