fiexed定位在键盘唤起时底部按钮浮起

1.js方法

通过window.onresize=function(){}控制

2.css:absolute定位

设置一个最外层div通过absolute定位top,left,right,bottom为0来代替body,设置一个content的div来作为容器absolute定位来实现,最后通过absolute来定位button按钮到底部

你可能感兴趣的:(fiexed定位在键盘唤起时底部按钮浮起)