IE 6 Bug:浮动:无 ->边界消失

发布于 2024-08-05 08:55:54 字数 294 浏览 1 评论 0原文

我有一个类,我们称之为单元格,

.cms-block .cell{ width:520px; float:left;}
.cms-block.wide .cell{width: auto; float:none}

在 IE 6 中,.cms-block.wide .cell 的子元素失去了边框/背景颜色。 如果我拿走浮动:无;边界就在那里。但是...单元格向左浮动。啊。 我环顾四周,发现了很多描述躲猫猫错误的页面。但对于这个具体问题,到目前为止我找不到答案。

平米

i have a class let's call it cell,

.cms-block .cell{ width:520px; float:left;}
.cms-block.wide .cell{width: auto; float:none}

in IE 6, the child elements of .cms-block.wide .cell loose their borders/background colors.
if I take away the float:none; the borders are there. but... the cell is floating left. argh.
I looked around and i found a lot of pages describing peek-a-boo bugs. but to this specific problem i could not find an answer so far.

peace

m

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

合久必婚 2024-08-12 08:55:54

给它布局?

.cms-block.wide .cell { 缩放:1; }

give it layout?

.cms-block.wide .cell { zoom:1; }

苏佲洛 2024-08-12 08:55:54

您的问题可能与您使用 .cms-block.wide 选择器选择多个类有关,但 IE6 不支持这一点。快速 Google 一下就会出现此页面,这可能会对你。

Your problem is probably related to the fact that you're selecting multiple classes with your .cms-block.wide selector, but IE6 doesn't support that. A quick Google turns up this page, which may be helpful to you.

酷到爆炸 2024-08-12 08:55:54

IE6 漏洞百出,而且不符合标准。 IE7问世已经快3年了。所以确实不应该剩下任何 IE6 安装,但不幸的是还是有。

但如果我是你,我会采取的方法是获得不支持 IE6 的接受。我正在开发一个新的网络项目,我们特意决定不支持 IE6。

IE6 is extremelly buggy, and non-standards compliant. It is almost 3 years since IE7 came out. So there really shouldn't be any IE6 installations left, but unfortunately there are.

But the approach that I would take if I were you is to get acceeptance not to support IE6. I'm working on a greenfield web project, and we have deliberately decided to not support IE6.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文