求大神介绍下头部设置背景图片的写法,要疯了都?
发布于 5 年前 作者 houna 2673 次浏览 来自 官方Issues

代码

<template lang="wxml">
  <image mode="scaleToFill" class="image" src='https://**/demo/33.png'>image>

template> <style lang=“scss”> .image{ width: 100%; height: 300px; background-color: rgba(0,0,0,.2); } style>

上下左右都有空白间距,网上找了很多,没有解决问题。

期望实现效果:

1 回复

刚刚写了个demo,没有遇到你这个问题。

回到顶部