如何更改 Twitter Bootstrap 3 轮播背景?
我想要的是标准的红色背景。 然后,每个旋转木马图像将放在这个红色背景之上。 只需更改标签的 css 即可获得红色背景,但轮播图片不会显示。
@import url("bootstrap.min.css");
body {
background-image:url('../images/red_background.png')
}
最佳答案
你可以尝试像这样覆盖.carousel
:
.carousel {
background: url(http://placehold.it/620x420/ff9900);
position: relative;
padding: 10px; /* Shows as a border around the carousel */
}
padding 只是为了使 bg-color 的存在变得明显。
关于css - 更改 twitter bootstrap 轮播背景?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22544351/