1. 问题:window.open 打开网页,ios 不行。android可以, 解决:用window.location.href
2.禁用文本选择,ios 中 input 不能输入和聚焦了,andriod 可以。
问题:
禁用文本选择,ios 中 input 不能输入和聚焦了,andriod 可以。
* {
-webkit-user-select: none;
user-select: none;
-webkit-touch-callout: none;
}
解决:
* {
-webkit-user-select: none;
user-select: none;
-webkit-touch-callout: none;
}
input {
-webkit-user-select: auto !important;
user-select: auto !important;
caret-color: transparent !important; /* 或者与背景颜色相同的颜色值 */
}
3.input,谈起软键盘的时候,样式走位
input 谈起软键盘的时候。把最外元素高度固定,失去焦点的时候在回归原属性位置。