uniapp 小程序 background-image不显示图片 1.问题: <view class="top-view"> .top-view { background-image: url(../../static/icon_top_bg.png); } 2.解决: 1.转为base64格式图片菜鸟工具在线转base64.xxx{ background-image:url(‘data:(此处为转码后的代码)’} 2.把图片上传到测试服务器