Questions about style traversal in vue style scoped through the use of > in css?

usually when you use a third-party component in Vue, you may modify the component. For example, the swiper component is referenced in home.vue and you want to modify the color of the dots in the swiper component. Because the style in home.vue uses the scoped attribute, it is impossible to modify the style in the swpier component. At this time, you can use > to achieve style traversal, so that the style of home.vue can be modified to the style in swiper.

clipboard.png

Dec.01,2021
Menu