代码:
var h=document.body.scrollHeight-170;
//var winHeight = window.screen.height,
//ctlHeight = document.body.querySelector('.mui-segmented-control').offsetHeight,
ctlConts = document.body.querySelectorAll('.mui-control-content');
mui.each(ctlConts, function() {
this.style.height = (h) +'px';
});
请问,怎样让横屏和竖屏的高度及时刷新??这边要退出,再进来刷新,才能刷新出来,但是进来是竖屏的话,横屏时,还是按照竖屏的高度计算的。。。