console
inputFocus: function (e) {
var winobj = $(window),
scope = this,
agent = navigator.userAgent.toLowerCase();
setTimeout(function () {
if (agent.indexOf('safari') != -1 && agent.indexOf('mqqbrowser') == -1
&& agent.indexOf('coast') == -1 && agent.indexOf('android') == -1
&& agent.indexOf('linux') == -1 && agent.indexOf('firefox') == -1) {
window.scrollTo(0, 1000000);
setTimeout(function(){
window.scrollTo(0, window.scrollY - 45);
}, 50)
} else {
window.scrollTo(0, 1000000);
}
}, 200);
},
<div class="header" id="header">会话问诊</div>
<div class="body" id="body"></div>
<div class="footer" id="footer">
<input type="text" id="input">
</div>
.header {
width: 100%;
height: 40px;
}
.body {
width: 100%;
overflow: auto;
}
.footer {
width: 100%;
height: 30px;position: fixed; bottom:0;left:0;right:0;
}