【发布时间】:2013-12-06 17:13:45
【问题描述】:
我是 Bootstrap 的新手,我有一个关于轮播的问题。我需要在大屏幕(个人电脑)上设置 700 像素的高度,为手机设置 500 像素的高度。我该怎么做?我把这个:
@media (min-width: 320px){
.carousel-caption p {
margin-bottom: 20px;
font-size: 20px;
line-height: 1.4;
}
.carousel {
height: 500px;
margin-bottom: 60px;
}
.carousel .item {
height: 500px;
background-color: #777;
}
.carousel-inner > .item > img {
position: absolute;
top: 0;
left: 0;
min-width: 100%;
height: 500px;
}
}
我在等待回复。
谢谢!
【问题讨论】:
标签: twitter-bootstrap mobile carousel responsive