收藏
回答

WXSS 设置背景图 无法显示

.content .items .item {

  background:url('../../public/img/1.png') no-repeat bottom right;

  background-size: 102rpx 98rpx;

}


开发者工具可以看到,手机上看不到

回答关注问题邀请回答
收藏

2 个回答

  • Long.
    Long.
    2017-02-07

    got it!

    2017-02-07
    有用
    回复
  • andkin☄
    andkin☄
    2017-02-07

    https://mp.weixin.qq.com/debug/wxadoc/dev/qa.html

    本地资源无法通过 css 获取

    background-image:可以使用网络图片,或者 base64,或者使用<image/>标签


    2017-02-07
    有用
    回复
登录 后发表内容