mrt-yyy

在页面样式内加入
*{
-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;
}

在添加完这段代码后,在IOS 上会有问题的,这个时候你会发现input 框无法正在输入了内容了;
造成这个原因就是 -webkit-user-select:none; 这个属性造成的。

解决这个方法 就是 在css 文件中同时设置一下input/texteare 的属性,如下所示:

input , texteare{
-webkit-user-select:auto;

分类:

技术点:

相关文章:

  • 2021-12-31
  • 2022-12-23
  • 2021-12-31
  • 2021-12-31
  • 2022-12-23
  • 2021-12-31
猜你喜欢
  • 2021-09-18
  • 2021-11-28
  • 2021-12-31
  • 2021-11-28
  • 2021-10-06
  • 2021-12-31
  • 2021-12-31
相关资源
相似解决方案