css - 定位错误菜单css位置: relative in IE7

标签 css xhtml position internet-explorer-7

我在 IE7 中遇到定位问题 我的 css 菜单中有以下内容

在 Chrome 和 Firefox 中工作正常,但在 IE7 中,菜单是垂直的。我该如何解决这个问题?

Page with this problem

请查看页面来源,行间链接:

菜单位于行之间:

457 和 614

标签开始于:

<div class="colorido" style="z-index: 10000; position: relative;">

div 'colorido' 的区域将 DestaquesFale Conosco

感谢任何帮助。

最佳答案

您需要向菜单的 UL 元素添加固定宽度。我进行了实验,550px 似乎很合适。

.colorido UL.mega-menu {
    height: 40px;
    position: relative;
    width: 550px;
}

关于css - 定位错误菜单css位置: relative in IE7,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11198174/

相关文章:

javascript - Scroll-lock/You click->你可以向下滚动

javascript - 使用 JS 或 JQUERY 选择页面加载时的第一个 html 表行

css - 连续 3 个 DIV,不能在 div 中保留文本

xhtml - xpath 查找没有类和 id 的节点

html - Div定位取决于图像大小?

html - CSS 背景图片和 div 样式滤色器

css - 在 Tailwindcss 中修改悬停

html - 我将如何向这个特定的 div 元素添加水平滚动条?

css - 为什么 z-index 0 的元素显示在 z-index 1 的元素上方

javascript滚动到光标: rect.顶部更改