简体   繁体   English

滑块的高度取决于屏幕的宽度

[英]Height of the slider according to the width of the screen

I just created a slider with bootstrap 3 and it works fine. 我刚刚用bootstrap 3 创建了一个滑块 ,它工作正常。

I want to like this site : ie the image is reduced height to the width of Register Main Menu. 我想喜欢这个网站 :即图像的高度减小到Register Main Menu的宽度。

How can I do this? 我怎样才能做到这一点?

Taken directly out of normalize.css 直接从normalize.css中取出

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;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM