1

我的轮播控件在 940 像素时看起来不错,但是当我将浏览器的大小调整为平板电脑或移动设备视图时,控件并没有在中心垂直对齐。

在此处查看示例。

4

1 回答 1

3

In styles.css you have the rule:

.carousel-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

The height: 100% is the violating code, and should be removed. In fact, all the other rules you have there are duplicates of rules already present in bootstrap.css, so you should just get rid of all of it.

于 2012-08-01T14:56:44.107 回答