uniapp的css样式图片大小截图展示

截取图片前

请添加图片描述

截取图片后

请添加图片描述

第一种方式:代码

<view class="swiper-box-img">
	<image class="swiper-box-img-img" :src="item.file_path" mode="aspectFill"></image>
</view>
.swiper-box-img{
    
    
    width: 750rpx !important;
}
	
.swiper-box-img-img{
    
    
    width: 100% !important;
    height: 840rpx !important;
}

第二种方式:代码

<view>
	<image class="swiper-box-img-img"  :src="item.file_path" mode="aspectFill"></image>
</view>
	
.swiper-box-img-img{
    
    
    width: 750rpx !important;
    height: 840rpx !important;
}

最后

感觉文章好的话记得点个心心和关注和收藏,有错的地方麻烦指正一下,如果需要转载,请标明出处,多谢!!!

猜你喜欢

转载自blog.csdn.net/m0_49714202/article/details/135260783