iOS
# H5交互
/**
* 与 ios native 交互
* payClick 定义的抛出给iOS交互的方法
*/
try {
window.webkit.messageHandlers.payClick.postMessage({
money: this.money
});
return;
} catch (error) {
console.log(error);
}
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
# H5页面 上下滑动卡顿
/* ios端微信h5页面上下滑动时卡顿 */
* {
-webkit-overflow-scrolling: touch;
}
1
2
3
4
2
3
4
# input存在重影边框问题
input {
outline: none;
-webkit-appearance: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
1
2
3
4
5
2
3
4
5
# input光标过长
不要给 input 加高度,加 padding 撑开就行了
上次更新: 2022/05/07, 18:01:12