IE不支持height = auto的图像,我应该使用什么? [英] IE doesn't support height=auto for images, what should I use?

查看:87
本文介绍了IE不支持height = auto的图像,我应该使用什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些高度= auto的图像,因为有时他们是不同的高度,而他们总是相同的宽度。

I have some images with height=auto because sometimes they are different heights whereas they are always the same width. It works in every browser but I.E., is there something similar I can use?

推荐答案

解决方案是添加典型的IE修复程序:(

The solution was to add the typical IE fix :(

css:

height:auto !important;

这篇关于IE不支持height = auto的图像,我应该使用什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆