【问题标题】:Image HEIGHT are not scaling in Internet Explorer 8图像高度在 Internet Explorer 8 中不缩放
【发布时间】:2014-03-13 16:23:42
【问题描述】:

我正在使用这个 CSS 代码来自动缩放图像:

.img-responsive {

    display: block;

    max-width: 100%;

    height: auto;

    width: 450px;

 } 

它在大多数浏览器中都可以正常工作。但在 IE 8 中,高度不能缩放!

我做了很多搜索,但找不到任何解决方案?

请帮忙?

【问题讨论】:

    标签: html css internet-explorer-8 responsive-design image-scaling


    【解决方案1】:

    图像周围需要一个容器。这个问题已经在这里回答了:

    max-width on <img> tag not working in IE8

    【讨论】:

      猜你喜欢
      • 2018-11-18
      • 2015-06-15
      • 2011-04-02
      • 2023-04-06
      • 1970-01-01
      • 1970-01-01
      • 2013-09-29
      • 2014-08-24
      • 2013-05-24
      相关资源
      最近更新 更多