我有这样的结构:
<div v-for="item in principal" class="cardgrande cardeffects imagehover">
<div v-bind:style='{ background: "linear-gradient(0deg,rgba(0,0,0,.6),rgba(0,0,0,.2) 40%,rgba(0,0,0,.2) 80%,rgba(0,0,0,.4)), url(" + item.midia + ")", }' class="flexcolumn card">
<div class="texto">{{item.titulo}}</div>
</div>
</div>
这个项目.midia不符合我的动态风格。我需要得到这个,因为它是我的图像的url(从v-for获得)。在
尝试使用返回样式的方法
添加以下方法
^{pr2}$你不需要这里的大括号。只需添加表单的动态属性:
也可以使用^{} 代替
^{pr2}$background
来设置多个背景图像。你的情况是:请参阅the docs以获取参考。在
相关问题 更多 >
编程相关推荐