版权声明:转载请评论留言 https://blog.csdn.net/solocao/article/details/86471969
主要是设置mode="widthFix"
和width: 100%;
<!-- 新手教程 -->
<template>
<div class="center-tutorial">
<img class="img" src="https://123.oss-cn-hangzhou.aliyuncs.com/666.jpeg" mode="widthFix">
</div>
</template>
<style lang="less" scoped>
.center-tutorial {
.img {
width: 100%;
}
}
</style>