1.v-for循环,点击更改按钮样式,默认选中第一个
https://blog.csdn.net/weixin_41599291/article/details/92825484
2.多个class名,数组
<div v-bind:class="[{ active: isActive }, errorClass]"></div>
3.获取元素高度
4.写样式对子组件是不生效
deep
https://blog.csdn.net/weixin_45910131/article/details/105723572
5.vue组件中添加scoped后某些样式不生效(子组件)
6.改变引用组件样式
在父组件加入特定class,style不加scoped
<style lang="scss">
.formatter-color {
color: #28fff7;
}
#j-salary .center_box {
width: 35% !important;
}
</style>
<style lang="scss" scoped>
网友评论