IE6 定位问题 - 缺少放置的按钮图像
我创建了一个页面,右下角有一个“后退”按钮。它在 Firefox 和更现代的浏览器中看起来位置很好,但在 Internet Explorer 6 中缺少“后退”按钮。
http://www.aetnamarketingcommunications.com/DentalQuiz/QuizTestPage.html
我尝试添加此绝对定位图像按钮的 z-index 属性没有成功...可能是什么问题? 谢谢,阿提拉
I have created a page with a "back" button at the bottom right. It looks well positioned in Firefox and more modern browsers however in Internet Explorer 6 the "back" button is missing.
http://www.aetnamarketingcommunications.com/DentalQuiz/QuizTestPage.html
I have tried adding z-index property to this absolute positioned image button without success...what could be the issue?
Thanks, Attila
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
要修复此错误,请尝试通过向锚定样式添加
clear: Both
来清除绝对定位的元素。这是 IE6 中的一个错误,与浮动无关。IE6 使用率低于 1%,不知道为什么要支持它。
关于 Z-Index (IE) 的特别说明:如果您在 IE6-IE8 中使用
z-index
,则应注意,每当您应用了position:absolute
,因此z-index
不相对于其任何父容器。To fix this bug, try clearing your absolutely positioned element by adding
clear: both
to the anchor styling. It's a bug in IE6, and has nothing to do with floats.IE6 is below 1% usage, not sure why you want to support it.
Special Note About Z-Index (IE): If you're using
z-index
in IE6-IE8, it should be noted that the stacking order in IE gets reset whenever you applyposition: absolute
, so thez-index
is not relative to any of its parent containers.我不再测试 ie6 但我会尝试 *zoom:1 像这样的所有内容
并从那里缩小范围。
I don't test for ie6 anymore but I would try *zoom:1 ing everything like so
and narrow it down from there..