You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.
vue 中的
CSS
作用域通过定义独有的
hash
属性的样式选择器来实现。经查阅官方文档和vue-loader,和组件类注释,知道在单文件组件中有一个极易忽视的属性
scoped
,它的出现表示该单文件组件的样式,只限定于该单文件组件。就算样式中含有其他组件的样式,最后也会被忽略。只要单文件组件中的样式带有
scoped
属性,那么在编译时,将为样式指定一个形如data-v-10578a49
的属性(就像id一样)来指定其组件样式的单独作用域。The text was updated successfully, but these errors were encountered: