行内写法:style="{'background': image}"js中this.image = 'url(' + res.data.content + ') no-repeat center / 100% 100%'
ps: 其中的'/ 100% 100%', 就相当于在background属性之后,添加一个background-size: 100% 100%;
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3