- var client_h = document.documentElement.clientHeight;
- $(window).on("resize",function(){
- var body_h = document.body.scrollHeight;
- if(body_h < client_h){
- $(".operate").removeClass("fixed");
- console.log("小了");
- }else{
- console.log("正常");
- $(".operate").addClass("fixed");
- }
- });
移动端安卓定位随键盘浮起
猜你喜欢
转载自blog.csdn.net/cheeso/article/details/79269834
今日推荐
周排行