VueJS - v-bind:style + hover

后端 未结 6 2070
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-01 12:27

I need to use CSS hover with VueJS v-bind:style directive but couldn\'t find information regarding it.

I need to bind styles for hover but v-bind:style.hover=

6条回答
  •  太阳男子
    2021-01-01 12:30

    If you use single file components, then you just need to make the button style scoped:

    
    
    
    

    Or even for a more confined styling there are modules, shown here: How to correctly use "scoped" styles in VueJS single file components?

提交回复
热议问题