子父组件中同名选择器的疑问 #9048
Answered
by
likui628
LiarAndQuan
asked this question in
Help/Questions
子父组件中同名选择器的疑问
#9048
-
我的父组件Home.vue的样式表如下: |
Beta Was this translation helpful? Give feedback.
Answered by
likui628
Aug 25, 2023
Replies: 1 comment 3 replies
-
playground 1 再包一层就不会有这个问题 建议父子组件的根样式名称还是不要一样为好 |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
LiarAndQuan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
playground 1
如下图,确实会有这个问题
再包一层就不会有这个问题
playground 2
建议父子组件的根样式名称还是不要一样为好