设置 CSS
.container{
overflow:auto;
}
img{
width:100%;
height:auto;
overflow:hidden;
}
设置 template
<div class="container">
<img :src="src">
</div>
设置 script
import src from ‘../../../assets/image/login/1.jpg‘
export default{
data(){
return{
src: src
}
}
}