开发者

How to css html to display image in IE, which can be viewed in firefox, chrome, and safari?

开发者 https://www.devze.com 2023-02-16 09:07 出处:网络
These 开发者_JAVA百科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.

These 开发者_JAVA百科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.

How do I get them to show in IE?


The HTML for your images currently looks like this:

<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). Remove the attribute entirely.

You should also remove the duplicated width attribute, so the final HTML is similar to:

<img src="....." alt="" title="I Love Art" width="200" />


For some reason, in IE, the img element has the height attribute set to 1.

<img width="200" height="1" title="I Love Art" alt="" src="http://giantmango.com/wp-content/uploads/japanese-style.jpg" complete="complete"/>
0

精彩评论

暂无评论...
验证码 换一张
取 消