使用下面方法 布局问题使用方法
用
position: relative;
position: absolute;
var ua = ;
if(('Android') > -1 || ('Adr') > -1){
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%');
}
});
}
mounted() {
const ua = ;
if (('Android') > -1 || ('Adr') > -1) {
const winHeight = ;
= () => {
var thisHeight = ;
if (winHeight - thisHeight > 50) {
= winHeight + 'px';
} else {
= '100%';
}
};
}
}