代码:
<view style="display:inline-block">
<image style="width:700px;max-width:100%" src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1565421686246&di=d1fcafa064b5a9aab5b69c36f73b03b8&imgtype=0&src=http%3A%2F%2Fg.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2F1e30e924b899a901a27a4b8917950a7b0308f5c6.jpg" />
</view>
预期表现:图片宽度不超过屏幕宽度
实际:
浏览器中:
给view加个width: 100%即可