js:
wx.getSystemInfo({
success: function(res){
that.setData({
photosize:res.windowWidth*0.28,
photomleft:res.windowWidth*0.026,
})
}
});
之后就在html页面设置margin,此时navigator已经设置成display:inline-block;
<navigator url="" style="width: {{photosize}}px;height:{{photosize}}px;margin:0 {{photomleft}}px {{photobottom}}px {{photomleft}}px;">
navigator>
问题:安卓以及ios10样式显示正确,ios9 设置的margin不生效,求大神解决,谢谢啦!!!