IE 6 Bug:浮动:无 ->边界消失
我有一个类,我们称之为单元格,
.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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
给它布局?
.cms-block.wide .cell { 缩放:1; }
give it layout?
.cms-block.wide .cell { zoom:1; }
您的问题可能与您使用
.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.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.