微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

css – 如何删除默认的Bootstrap 3 carousel控件背景渐变?

我很确定这是我需要修改代码,但由于某种原因,我不能得到渐变消失在IE。我要他们完全走了!
.carousel-control {
text-shadow: none;
opacity: 1;
filter: alpha(opacity=100)
}
.carousel-control.left {
background-image: -webkit-gradient(linear,0 top,100% top,from(rgba(0,0.5)),to(rgba(0,0.0001)));
background-image: -webkit-linear-gradient(left,color-stop(rgba(0,0.5) 0),0.0001) 100%));
background-image: -moz-linear-gradient(left,rgba(0,0.5) 0,0.0001) 100%);
background-image: linear-gradient(to right,0.0001) 100%);
background-repeat: repeat-x;
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000',endColorstr='#00000000',GradientType=1)
}
.carousel-control.right {
background-image: -webkit-gradient(linear,0.0001)),0.5)));
background-image: -webkit-linear-gradient(left,0.0001) 0),0.5) 100%));
background-image: -moz-linear-gradient(left,0.0001) 0,0.5) 100%);
background-image: linear-gradient(to right,0.5) 100%);
background-repeat: repeat-x;
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000',endColorstr='#80000000',GradientType=1)
}
.carousel-control:hover,.carousel-control:focus {
opacity: 1;
filter: alpha(opacity=100)
}

解决方法

.carousel-control.left,.carousel-control.right {
    background-image: none
}

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。