如何在旋转木马中从旋转木马控件中删除渐变背景而不覆盖但替换.less文件?
答案 0 :(得分:2)
只需覆盖相应的属性(请参阅https://github.com/twbs/bootstrap/blob/v3.1.1/less/carousel.less#L81-L89),例如:
@import ".../bootstrap.less";
.carousel-control {
&.left, &.right {
background-image: none;
.reset-filter(); // reset IE gradient filters
}
}
答案 1 :(得分:2)
对我来说,这很有用(我需要橙色):
.carousel-control.left, .carousel-control.right {
background: orange !important;
filter: progid: none !important;
filter:none !important;
background-image:none;
outline: 0;
opacity: 1;
}