<div class="details-backgroun" :style="'background-image: linear-gradient(90deg, rgba(19,21,77,.9) 15%,rgba(19,21,77,.1) 80%),url(' + url +');'"> </div>
data(){ return{ url: 'https://img2.baidu.com/it/u=3260942491,3130294538&fm=26&fmt=auto', } }
效果

<div class="details-backgroun" :style="'background-image: linear-gradient(90deg, rgba(19,21,77,.9) 15%,rgba(19,21,77,.1) 80%),url(' + url +');'"> </div>
data(){ return{ url: 'https://img2.baidu.com/it/u=3260942491,3130294538&fm=26&fmt=auto', } }
效果

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。