How to fix display:inline-block on IE6?

前端 未结 3 2101
忘掉有多难
忘掉有多难 2020-12-10 16:07

How to fix display:inline-block; on IE6 ?

My html Page http://www.faressoft.org/tutorialTools/slideShow/

can I get the same result in ot

相关标签:
3条回答
  • 2020-12-10 16:16

    You have to re-specify display:inline; on block level elements in your IE style sheets.

    HTML:

    <div class="ImageSlideShow">blah</div>
    

    REGULAR CSS:

    .ImageSlideShow { display:inline-block; } 
    

    IE CSS:

    <!--[if lt IE 8]>
    <style>
    .ImageSlideShow { display:inline; zoom:1; }
    </style>
    <![endif]-->
    

    See: http://work.arounds.org/using-inline-block-ie7-and-ie6/

    BONUS:

    You should also specify display:inline; for .ImageSlideShow .ImageNum {} to alleviate another IE bug.

    0 讨论(0)
  • 2020-12-10 16:23

    http://blog.mozilla.com/webdev/2009/02/20/cross-browser-inline-block/

    In IE6 you can set display:inline-bock only to real inline elements like span or a.

    0 讨论(0)
  • 2020-12-10 16:27
    * html p { display: inline; zoom: 1; }
    
    0 讨论(0)
提交回复
热议问题