一:实现图片高度自适应
1. swiper轮播海报通过wx.getSystemInfo接口获取屏幕高度,高度依据图片宽高等比缩放
运行于app.js,全局保存
// 设备信息 wx.getSystemInfo({ success: function(res) { that.screenWidth = res.windowWidth; } }); |
发布:2018-02-06 16:32浏览: 次来源:网络 作者:cola
运行于app.js,全局保存
// 设备信息 wx.getSystemInfo({ success: function(res) { that.screenWidth = res.windowWidth; } }); |
免责声明:本站所有文章和图片均来自用户分享和网络收集,文章和图片版权归原作者及原出处所有,仅供学习与参考,请勿用于商业用途,如果损害了您的权利,请联系网站客服处理。