How to override scoped styles in Vue components?

前端 未结 2 1728
一整个雨季
一整个雨季 2021-02-05 15:17

Let\'s save I have a .Vue component that I grab off of Github somewhere. Let\'s call it CompB and we\'ll add a single CSS rule-set there for a blue header:

2条回答
  •  粉色の甜心
    2021-02-05 16:09

    You will need to add more specificity weight to your css. You have to wrap that component in another class so you can override it. Here is the complete code

    
    
    
    
    
    

提交回复
热议问题