【问题标题】:Float Doesn't Work In IE6浮动在 IE6 中不起作用
【发布时间】:2023-03-09 22:05:01
【问题描述】:

我在 Internet Explorer 6 中遇到浮动问题。

问题是ie6不做float,不把列放在其他列旁边

这是 HTML 代码:

<div id="contingut">
    <div id="col_esq">
        <div class="menu">
            ... 
        </div>
        <div class="25anys"> <img src="img/25_anys.png"  /></div>
    </div>
    <div id="col_dreta"> ....</div>
</div>

和 CSS 代码:

#col_esq{
    display: inline;
    width:230px;
    float:left;

}

#col_dreta{
    float:left;
    width:675px;
    height:100%;
    display: inline;
}

访问网站的网址是:http://abs.marcmorales.es/index.php?s=5&i=1

【问题讨论】:

  • -1 “我在 Internet Explorer 6 中的 Float 有问题”不是问题。您能否准确描述问题是什么,以便我们在点击您的链接时至少知道我们在寻找什么?
  • 问题是ie6没有做float,没有把列放在其他列旁边
  • 浮点数不是问题。 IE6 是问题。

标签: html css internet-explorer-6


【解决方案1】:

尝试使用宽度(降低它),因为如果父级有任何边距 IE 错误并给子级也相同的边距。 position relative 有时会修复 IE 中的问题。

还有为什么他们是display inline 而不是display block

【讨论】:

  • 我证明是否使用内联显示运行
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2010-11-13
  • 1970-01-01
  • 2010-10-27
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多