获取图片高度的bug

发布于 8 年前作者 wei997799 次浏览最后编辑 8 年前来自 ask

var query = wx.createSelectorQuery()

query.select(‘#mjltest’).boundingClientRect(function(rect){

console.log((rect.height))

}).exec()

}

或者包含图片的view,高度测试出来的是

<image src=http://i1.bvimg.com/629710/7ebc6bd66e81a22b.png mode=“widthFix”></image>

没加 mode="widthFix"的高度,是个bug

1 回复
houjuan
houjuan1 楼6 年前

也有这个问题