如何单页面覆盖UI组件默认样式

 

使用一个父标签包起来需要覆盖的样式标签

<div class="container-member">
<div>

 

<style>
  .container-member .avue-crud__pagination {
    position: unset !important;
    height: unset !important;
    margin-top: unset !important;
    margin-bottom: unset !important;
    padding: unset !important;
  }
</style>

注意:css不要加scoped的,要一条一条的覆盖之前的样式

 

css作用范围

加了scoped,在当前组件生效,不加在整个html页面生效

posted @ 2020-12-04 11:32  xdsax  阅读(395)  评论(0)    收藏  举报