建子页面top和bottom能否支持 em、rem这类型单位? 设置PX单位不好适配不同分辨率的屏幕!
var subpage_style = {
top: '64px',
bottom: '50px',
background:'transparent',
bounceBackground:'url(include/images/bg.png)',
bounce: 'vertical',
scrollIndicator: 'none'
};
var subpage_style = {
top: '64rem',
bottom: '50rem',
background:'transparent',
bounceBackground:'url(include/images/bg.png)',
bounce: 'vertical',
scrollIndicator: 'none'
};
建议官方考虑下这个问题!!! 现在用相对单位来适配不同手机尺寸已经是主流了!!!
乔军
请问转化成px如何做不同屏幕的适配
2018-07-21 22:46