我将引导程序轮播插入网页时出现了一些问题...我希望在顶部和底部没有寄宿生的情况下将图片放在全尺寸中...我拍了一个截图:
我的css代码是这样的:
/* Carousel base class */
.carousel {
margin-bottom: 0px;
}
}
/* Since positioning the image, we need to help out the caption */
.carousel-caption {
z-index: 5;
}
/* Declare heights because of positioning of img element */
.carousel .item {
height: 400px;
background-color:#555;
}
.carousel img {
position: absolute;
top: 0;
left: 0;
min-height: 400px;
}
/* Bump up size of carousel content */
.carousel-caption p {
margin-bottom: 20px;
font-size: 21px;
line-height: 1.4;
}
以及容器和行标记:
.row {
margin-left: -20px;
margin-right: -20px;
}
.container {
margin-right: auto;
margin-left: auto;
padding-left: 20px;
padding-right: 20px;
}