vue.js 中 v

编程入门 行业动态 更新时间:2024-10-10 04:26:13

<a href=https://www.elefans.com/category/jswz/34/1770550.html style=vue.js 中 v"/>

vue.js 中 v

<div  v-for="(node,index) in circlesTemp"  class="bgColorJq":class="(index + 1) % circlesTemp.length == 0 ?'noright':'margin-right-10'":style="{'background-color':node.bgColor}"></div>// 1、在vue中 class 与  :class 是不冲突的,
// 2、(index + 1) % circlesTemp.length == 0 ?'noright':'margin-right-10'" 这格是关键性代码,//样式
<style>.noright{margin-right:0;}.margin-right-10{margin-right:10px;}
</style>

更多推荐

vue.js 中 v

本文发布于:2024-02-14 01:16:18,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1761543.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:vue   js

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!