<view class="top-bg">
<image class="bg-img" src="/static/home_bg.png" mode=""></image>
</view>
.top-bg {
width: 100%;
height: 40vh;
padding: 0 25%;
border-bottom-left-radius: 100%;
border-bottom-right-radius: 100%;
transform: translateX(-16.666%);
overflow: hidden;
.bg-img {
width: 100%;
height: 100%;
}
}
04-17
1163
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
06-17
1795
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交