【发布时间】:2012-01-26 11:03:21
【问题描述】:
转向响应式设计,我将 %s 用于图像,例如:
#example img {
width: 100%;
height: auto;
max-width: 690px; // Width of the image uploaded.
}
这很好用,但在 Internet Explorer 8 及更低版本中除外。这是因为height: auto 是 CSS3 的一部分,而 CSS3 仅受 IE9 及更高版本支持?
最重要的部分...关于解决这个问题的方法有什么建议吗?到目前为止我唯一能想到的就是给它一个最大高度。
谢谢
【问题讨论】:
标签: image css responsive-design