首页 > 其他分享 >前端学习之------浏览器兼容(移动端)

前端学习之------浏览器兼容(移动端)

时间:2022-09-04 21:11:59浏览次数:61  
标签:box none 浏览器 IOS 兼容 webkit ------ input Android

1、禁止IOS识别长串数字为电话

<meta content="telephone=no" name="format-detection">

2、禁止IOS弹出各种操作窗口

.box{
	-webkit-touch-callout: none;
}

3、禁止Android手机识别邮箱

<meta content="email=no" name="format-detection">

4、禁止IOS和Android用户选中文字

.box{
	-webkit-user-select: none;
}

5、IOS下取消input在输入的时候英文首字母的默认大写

<input type="text" autocapitalize="off" autocorrect="off">

6、Android下取消输入语音按钮

input::-webkit-input-speech-button{
	display: none;
}

7、在IOS和Android端都有效的修改点击高亮效果

.box{
	-webkit-tap-highlight-color: aqua;
}

8、overflow:scroll或auto,在IOS上滑动卡顿的问题

.box{
	-webkit-overflow-scrolling: touch;
}

9、移动端click300ms延时响应

使用fastclick插件

import FastClick from 'fastclick'
FastClick.attach(document.body)

  

标签:box,none,浏览器,IOS,兼容,webkit,------,input,Android
From: https://www.cnblogs.com/zhaoyingzhen/p/16656094.html

相关文章

  • 注解Annotation
    注解是一种引用数据类型,重点掌握Deprecated(表示已过时),Override(表示重写)。元注解是用来标注注解类型的注解如Target(用来标注注解可以出现在哪些位置)、Retention(用来标注最......
  • lightdb使用一条sql实现高性能事务一致性归历史
    相比insertselect,delete,如下:--lightdb专有oracle匿名块写法BEGINTRANSACTIONISOLATIONLEVELREPEATABLEREAD;insertintoxxselectxxfromyywhereid<xxx;......
  • 子网划分
    作者:菘蓝时间:2022-09-04=========================================================================================================================一、网络分类......
  • 内置单片机的433无线模块高速连传典型运用
    E61是高速型433M无线数传模块,内置高性能单片机和高速无线RF芯片,UART串口透明传输,工作在425~450.5MHz频段(默认433MHz),发射功率最大1W。无线模块在“连续传输方式”下......
  • git ignore忽略规则
    aliases:[gitignore]tags:[git,blog]link:date:2022-09-04目录aliases:[gitignore]tags:[git,blog]Git忽略文件提交的方法Git忽略规则Git忽略规则优先级Gi......
  • 学习笔记1
    一、学习笔记第一章1.Unix  Unix是20世纪70年代初出现的一个操作系统,除了作为网络操作系统之外,还可以作为单机操作系统使用。Unix作为一种开发平台和台式操作系统获......
  • 复杂格式数据处理
    1SELECT2code,3name,4ai.ACode,5ai.AName,6bi.BCode,7bi.BName8FROM(SELECT9get_json_object(t.value,......
  • Fedora 24 Beta 版发布下载!
    Fedora24Beta在经过三次延期后终于在 2016年5月10日放出,除了对传统32位和64位架构的支持外,此次Fedora24Beta还额外增加了对PPC64、PPC64el和ARM64......
  • 生命周期函数(面试)
    生命周期函数 beforeCreate()created()beforeMount()Mounted()beforeUpdate()Updated()beforeDestroy()destroyed()//......
  • Flipping and Bonus
    ProblemStatementTakahashiwilltossacoin$N$times.Healsohasacounter,whichinitiallyshows$0$.Dependingontheresultofthe$i$-thcointoss,thef......