Bootstrap和Carousel

时间:2014-04-18 13:36:22

标签: twitter-bootstrap-3

我已经检查了框架的可能性和问题。 Bootstrap有额外的代码,需要修改一些代码。 我附上我的代码CSS,如果这是正确的,我请你检查并通知我,特别是位置元素。

.carousel {
    height: 250px;
    margin-bottom: 20px;
    margin-top: 10px;
}
.carousel-caption {
    z-index: 20;
}
.carousel-caption {
    left: 10%;
    padding-bottom: 30px;
    right: 10%;
}
.carousel .item {
    height: 250px;
}
.carousel-inner > .item > img {
    height: 250px;
    left: 0;
    min-width: 100%;
    position: relative;
    top: 0;
}
.carousel-control {
    width: 5%;
}
.carousel-control.left, .carousel-control.right {
    display: block;
    float: left;
    height: 250px;
    width: 5%;
}
.carousel-control.left {
    background: url("../images/left1.png") no-repeat scroll center center rgba(0, 0, 0, 0);
}
.carousel-control.right {
    background: url("../images/right1.png") no-repeat   scroll center center rgba(0, 0, 0, 0);
}
.carousel-indicators {
    bottom: 10px;
    left: 40%;
    list-style: none outside none;
    margin-left: -20%;
    padding-left: 0;
    position: absolute;
    text-align: center;
    width: 50%;
    z-index: 15;
}

0 个答案:

没有答案