js-移動端android瀏覽器中input框被軟鍵盤遮住的問題解決方案
- var winHeight = $(window).height();
- $(window).resize(function() {
- var thisHeight = $(this).height();
- if (winHeight - thisHeight > 50) {
-
-
- $('body').css('height', winHeight + 'px');
- } else {
-
-
- $('body').css('height', '100%');
- }
- });
- 源地址:http://blog.csdn.net/hzaini89/article/details/72864344
歡迎關注本站公眾號,獲取更多信息