[英]How to css html to display image in IE, which can be viewed in firefox, chrome, and safari?
These images on the bottom left of this link http://giantmango.com/i-love-art-13-3319 display in firefox, chrome, safari, but not in IE. 这些图片位于此链接的左下方http://giantmango.com/i-love-art-13-3319,它们以Firefox,chrome,safari显示,但不以IE显示。
How do I get them to show in IE? 如何使它们显示在IE中?
The HTML for your images currently looks like this: 图片的HTML当前如下所示:
<img src="....." alt="" title="I Love Art" width="200" width="200" height=""/>
The problem is the empty height
attribute (IE is treating this as though the height
is set to 1
). 问题是空的
height
属性(IE将其视为将height
设置为1
)。 Remove the attribute entirely. 完全删除该属性。
You should also remove the duplicated width
attribute, so the final HTML is similar to: 您还应该删除重复的
width
属性,因此最终的HTML类似于:
<img src="....." alt="" title="I Love Art" width="200" />
由于某些原因,在IE中, img
元素的height
属性设置为1 。
<img width="200" height="1" title="I Love Art" alt="" src="http://giantmango.com/wp-content/uploads/japanese-style.jpg" complete="complete"/>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.