覆盖原生样式使用深度穿透
2022-10-12 本文已影响0人
锋叔
CSS
<style>
.father >>> element-ui 自带class
</style>
SCSS
<style lang="scss" scoped>
.father ::deep element-ui 自带class
</style>
LESS
<style lang=less" scoped>
.father \deep\ element-ui 自带class
</style>
<style>
.father >>> element-ui 自带class
</style>
<style lang="scss" scoped>
.father ::deep element-ui 自带class
</style>
<style lang=less" scoped>
.father \deep\ element-ui 自带class
</style>