$('.commentInput input').bind('focus',function(){
$('.commentInput').css('position','static ');
//或者$('#viewport').height($(window).height()+'px');
}).bind('blur',function(){
$('.commentInput').css({'position':'fixed','bottom':'0'});
//或者$('#viewport').height('auto');
});
软键盘的监听
猜你喜欢
转载自www.cnblogs.com/liujun1128/p/10213295.html
今日推荐
周排行