1. 首页
  2. 跨平台
  3. Cordova
  4. 禁止选中文字兼容IE、Chrome、FF等

禁止选中文字兼容IE、Chrome、FF等

上传者: 2020-12-13 07:43:01上传 PDF文件 18.21KB 热度 22次
代码如下: $(el).attr(‘unselectable’,’on’) .css({‘-moz-user-select’:’-moz-none’, ‘-moz-user-select’:’none’, ‘-o-user-select’:’none’, ‘-khtml-user-select’:’none’, /* you could also put this in a class */ ‘-webkit-user-select’:’none’,/* and add the CSS class here instead */ ‘-ms-user-select’:’none’, ‘user-
下载地址
用户评论