在Vue3中,如果使用了 <style scoped>
scoped表示,仅仅再次作用域生效。但是不知道是什么原因,会导致你的其他样式失效,
此时就可以使用深度属性
<a-from-item class="custom">
父样式 >>>子样式
.custom >>> .ant-from-item-label
深度属性还有其他写法,有兴趣的自行百度,此处使用>>>就生效了
在Vue3中,如果使用了 <style scoped>
scoped表示,仅仅再次作用域生效。但是不知道是什么原因,会导致你的其他样式失效,
此时就可以使用深度属性
<a-from-item class="custom">
父样式 >>>子样式
.custom >>> .ant-from-item-label
深度属性还有其他写法,有兴趣的自行百度,此处使用>>>就生效了