使用 scoped 后,父组件的样式将不会渗透到子组件中,如果失效的话:
使用深度作用选择器 /deep/
/deep/ .permission-tag {
background-color:#ecf5ff;
}
使用 scoped 后,父组件的样式将不会渗透到子组件中,如果失效的话:
使用深度作用选择器 /deep/
/deep/ .permission-tag {
background-color:#ecf5ff;
}
本文标题:2018-07-18 Vue scoped CSS 与深度作用选
本文链接:https://www.haomeiwen.com/subject/rkcopftx.html
网友评论