开发者

IE 9 CSS Float problem!

The following web page is not showing properly in IE 9.

It seems to be only a problem in IE 9.

http://froyo.tv/test/

the list-style-image are over the image!

IE 9 CSS Float problem!

IE9

IE 9 CSS Float problem!

Firefox, Chrome, IE8, ...

EDIT: I know how to fix it! But I want to know what is really going on with IE9

Fixed: http://froyo.tv/test/index_开发者_JAVA百科fix.php


I'm not sure why IE9 is behaving differently, but you can fix it to work consistently by:

  • Removing margin-right: 30px on .image.
  • Removing width: 500px on .detail (you may wish to add back a smaller width)
  • Adding float: left to .detail.

Here's a simple reproduction of the problem.

  • Broken: http://jsfiddle.net/Nh3kf/
  • Fixed: http://jsfiddle.net/Nh3kf/1/


This is a fix for the problem in IE9:

li{list-style-position: inside;}

I guess that IE9 doesn't have the list bullets "inside".

Se the fix here:

http://jsfiddle.net/Nh3kf/40/


Okay, using Chrome I can see the custom list images, IE9 doesn't handle list-style-image.
Instead of using it, try this:
li {background:url(your_image.jpg) center left;}

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜