/** * 修改点击input输入框时的位置 */ $('.input-footer-none').on('focus',function(){ var _this=this; setTimeout(function(){ _this.scrollIntoView(); _this.scrollIntoViewIfNeeded(); },200); });