<image mode="heightFix" style="height:24rpx"
src="https://...." />
这里使用定高,高度height为图片高度。 mode取heightFix,高度不变,宽度按比例缩小
小程序,image的属性见微信文档https://developers.weixin.qq.com/miniprogram/dev/component/image.html
<image mode="heightFix" style="height:24rpx"
src="https://...." />
这里使用定高,高度height为图片高度。 mode取heightFix,高度不变,宽度按比例缩小
小程序,image的属性见微信文档https://developers.weixin.qq.com/miniprogram/dev/component/image.html