简体   繁体   English

ie7 li在li下而不是相同的高度

[英]ie7 li under li instead of the same height

the li's of my table are been placed one below the other in ie7 and not in the same line like all the other browsers. 我表的li位置在ie7中一个放在另一个下方,而不是像其他所有浏览器一样位于同一行。

what should I add to the li or ul definition,I have a possibly to add a different css only for ie7 if that can help. 我应该在li或ul定义中添加什么,如果有帮助的话,我可能只为ie7添加一个不同的CSS。

link: 链接:

https://dl.dropbox.com/u/107452929/ie7/index.htm https://dl.dropbox.com/u/107452929/ie7/index.htm

The problem seems to be that Internet Explorer can only apply display: inline-block to elements that are ' naturally ' in-line. 问题似乎是Internet Explorer只能将display: inline-block应用于“ 自然display: inline-block元素。

The work-around, for IE, would seem to be to use float:left instead. 对于IE,解决方法似乎是改用float:left

Although another solution seems to be using a separate conditionally-included CSS for IE: 尽管另一种解决方案似乎是针对IE使用单独的有条件包含的CSS:

<!--[if ie lte 7]>
    .liElementsClass,
    li {
        display: inline;
        zoom: 1;
    }
<![end if]-->

Reference: 参考:

try adding display:block; 尝试添加display:block; to your <li> 给你的<li>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM