做法如下:
樣式設置寬度100%,
.img{
width: 100%;
}
添加屬性 mode="widthFix",
<image class="img" src="../../images/hello.png" mode="widthFix">
即可實現!
做法如下:
樣式設置寬度100%,
.img{
width: 100%;
}
添加屬性 mode="widthFix",
<image class="img" src="../../images/hello.png" mode="widthFix">
即可實現!