We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我们在使用element-ui的时候经常会需要修改组件默认样式。有的时候element提供的默认的样式不能满足项目的需要,就需要我们队标签的样式进行修改,但是发现修改的样式不起作用
element-ui
(1)less 和 sass 中都提供了 /deep/ 深度穿透选择器,此时我们依旧可以保留scoped属性而不必担心样式污染。
/deep/
scoped
<style lang="less" scoped> /deep/ .el-table--body {} </style>
(2)vue中提供了深度选择器>>>,但是sass等工具还无法识别他,需要写在单独的style里面
>>>
<style scoped> // 需要覆盖的样式 .wrapper >>> .el-table--body {} </style> <style lang="less" scoped> // 本地样式 </style>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
我们在使用
element-ui
的时候经常会需要修改组件默认样式。有的时候element提供的默认的样式不能满足项目的需要,就需要我们队标签的样式进行修改,但是发现修改的样式不起作用(1)less 和 sass 中都提供了
/deep/
深度穿透选择器,此时我们依旧可以保留scoped
属性而不必担心样式污染。(2)vue中提供了深度选择器
>>>
,但是sass等工具还无法识别他,需要写在单独的style里面The text was updated successfully, but these errors were encountered: