滑块的高度根据屏幕的宽度而定

时间:2013-11-23 13:48:22

标签: javascript twitter-bootstrap twitter-bootstrap-3

我只用created a slider使用bootstrap 3,它运行正常。

我想要this site:即图像的高度减小到注册主菜单的宽度。

我该怎么做?

1 个答案:

答案 0 :(得分:0)

直接取自normalize.css

<强> CSS:

img {
  /* Remove border when inside `a` element in IE 8/9. */
  border: 0;
  /* Improve image quality when scaled in IE 7. */
  -ms-interpolation-mode: bicubic;

  /* Suppress the space beneath the baseline */
  /* vertical-align: bottom; */

  /* Responsive images */
  max-width: 100%;
  height: auto;
  /* Correct IE 8 not scaling image height when resized. */
  width: auto;
  width: auto\9;
}
相关问题