如何自定义 颜色?

问题描述 投票:0回答:1

我正在使用角分页,并且我想将此blue颜色自定义为another,任何人都可以帮我。

enter image description here

我也在下面的代码中尝试过,但是对我来说不起作用。此链接下的下一个>>>“ https://www.npmjs.com/package/ngx-pagination

  // head
<style>
  .my-pagination /deep/ .ngx-pagination .current {
    background: red;
  }
</style>

// body
<pagination-controls class="my-pagination"><pagination-controls>
angular colors pagination customization
1个回答
0
投票

您可以尝试为以下选择器分配颜色

::ng-deep ul > li:not(.active) > a {
  background-color: red !important;
  border-color: black !important;
}

::ng-deep ul > li.active > a {
  background-color: green !important;
  border-color: red !important;
}
© www.soinside.com 2019 - 2024. All rights reserved.