在position:fixed/absolute内加入 -webkit-transform: translateZ(0); 1. 假如有遮罩情况则在内容区域,加入 : margin-bottom:30px;//margin-top:30px; 1. 抖动情况,则在内容区域,加入 : overflow-y: auto; 1.
在position:fixed/absolute内加入 -webkit-transform: translateZ(0); 假如有遮罩情况则在内容区域,加入 : margin-bottom:30px;//margin-top:30px; 抖动情况,则在内容区域,加入 : overflow-y: auto;
解决absolute fixed元素在安卓唤起虚拟键盘时,元素被挤上来。 2019-09-30 08:55 −//由于安卓虚拟键盘也会占位置,致使页面高度变小,所以absolute fixed元素跟着移动 //防止唤起键盘,导致absolute元素被挤上来 var isAndroid = navigator.userAgent.indexOf('Android') &... ...