行内写法:style="{'background': image}"js中this.image = 'url(' + res.data.content + ') no-repeat center / 100% 100%'
ps: 其中的'/ 100% 100%', 就相当于在background属性之后,添加一个background-size: 100% 100%;
Powered by: 博客园 Copyright © 2024 地霊殿~三無 Powered by .NET 8.0 on Kubernetes