<template> <view class="app"> <image src="../../static/test.jpg" mode="widthFix"></image> <view class="zzz"></view> </view> </template> .zzz{ height: 100upx; background-color: #000; } image{ width: 100%; }
bandeng (作者)
ok,解决了
2019-03-21 16:15
1***@qq.com
回复 bandeng: 请问怎么解决的
2022-01-20 16:04
bandeng (作者)
回复 1***@qq.com: 就是上面提到的display: block; / display: inline-block;或者父容器 font-size: 0;
2022-03-31 22:03