背景设置高度100%,在弹出软键盘后背景会上缩,,,有什么办法解决吗
html{height: 100%;} body{ font: "微软雅黑"; background: url(image/bj.jpg) no-repeat center center; background-size: 100% 100%; height: 100%; }
解决方案
取消html,body的高度100%,背景使用图片绝对定位,宽度百分百,然后登陆框 同样 绝对定位居中。