문제

How do you remove the gradient background from the carousel-control in a carousel without overwriting but replacing in the .less files?

도움이 되었습니까?

해결책

Just override the corresponding properties (see https://github.com/twbs/bootstrap/blob/v3.1.1/less/carousel.less#L81-L89), e.g.:

@import ".../bootstrap.less";

.carousel-control {
    &.left, &.right {
        background-image: none;
       .reset-filter(); // reset IE gradient filters
    }
}

다른 팁

For me, this worked (I needed orange color):

 .carousel-control.left, .carousel-control.right {
  background: orange !important;
  filter: progid: none !important;
  filter:none !important;
  background-image:none;
  outline: 0;
  opacity: 1;
 }
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top