直接上代码:
<view class="content" style="background: url(/static/image/mine/mine_header_top_image.png);background-repeat: no-repeat;background-size: cover;">
如果不加background-repeat: no-repeat;background-size: cover;
可能会导致图片变形或者放大的
直接上代码:
<view class="content" style="background: url(/static/image/mine/mine_header_top_image.png);background-repeat: no-repeat;background-size: cover;">
如果不加background-repeat: no-repeat;background-size: cover;
可能会导致图片变形或者放大的
本文标题:uni-app设置某个view的背景图片
本文链接:https://www.haomeiwen.com/subject/enbjlrtx.html
网友评论