- transform 属性会使 position:fixed 失效 解决办法: 把内容和定位的元素分开;
- 页面上数字不被识别为电话 <meta name="format-detection" content="telephone=no" />
- rem 单位下做圆 宽高比较小的时候在移动端会变成椭圆形 原因:宽高大小有小数 决解:做取整处理
- 苹果手机在点击时候会自带一个灰亮背景, 解决办法 -webkit-tap-highlight-color: transparent;
- safari 浏览器 input submit 在会出现颜色和样式改变的bug,解决办法给input 写上-webkit-appearance: none;
- ng-click 在移动端有三百秒延迟决绝办法 引入fastclick,然后在window.load中运行FastClick.attach(document.body),angular 就得在 run 方法运行
- 在input 外面的div 上写position:relative 不然可能出现白屏现象
- 在移动端安卓 键盘出来覆盖页面(页面没有上移)
决解:
if (/Android/gi.test(navigator.userAgent)) {
window.addEventListener('resize', function () {
if (document.activeElement.tagName == 'INPUT' || document.activeElement.tagName == 'TEXTAREA') {
window.setTimeout(function () {
document.activeElement.scrollIntoViewIfNeeded();
}, 0);
}
$('#orderidNum').blur(function(){
document.activeElement.scrollIntoViewIfNeeded();
});
})
}
9.js 计算会有小数点问题! 计算的时候得数可以用用 tofixed(2)进行四舍五入,或者在计算的时候乘的时候先阔达10倍在计算(记得结果的换算回来),除的时候也要扩大10倍,然后在计算!
QQ:738579138 (学无)转载请声明原文作者及QQ
移动端常见问题
最新推荐文章于 2020-03-24 09:32:34 发布