水平菜单不显示内联

时间:2013-01-13 14:38:57

标签: menu internet-explorer-9

我的横向菜单有问题。菜单未在IE9中显示内联。它在Firefox,Safari和Chrome中都很好用。不幸的是,我在Mac上工作,无法访问IE来测试它。你有什么想法,为什么它不能正常工作?

这是我的CSS:

.navigationwide {
    background-image: url('images/site_gray_bg.png');
    border-top: 3px solid #efa320;
    -moz-box-shadow: 0px 10px 20px rgba(0,0,0,0.3);
    -webkit-box-shadow: 0px 10px 20px rgba(0,0,0,0.3);
    box-shadow: 0px 10px 20px rgba(0,0,0,0.3);
}
.navigation {
    margin: auto;
    width: 960px;
    text-align: center;
}
.menu {
    margin: 0;
    padding: 0;
}
.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}
.menu li {
    display: inline-block;
    padding: 0;
}
.menu li a {
    display: block;
    font-family: 'Medula One', cursive;
    font-size: 30px;
    color: #ffffff;
    margin: 0;
    padding: 15px 25px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}
.menu li a:hover {
    color: #efa320;
}
/* ----------------- SUBMENU START ----------------- */
.menu li ul {
    background-image: url('images/site_gray_bg.png');
    display: none;
    height: auto;
    padding: 0;
    margin: 0;
    position: absolute;
    z-index: 200;
}
.menu li:hover ul {
    display: block;
}
.menu li li {
    background: none;
    display: block;
    float: none;
    margin: 0;
    padding: 0;
}
.menu li:hover li a {
    background: none;
}
.menu li ul a {
    display: block;
    font-family: 'Medula One', cursive;
    font-size: 24px;
    color: #ffffff !important;
    margin: 0;
    padding: 10px 25px;
    text-align: left;
    text-decoration: none;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.menu li ul a:hover {
    color: #ffffff;
    background-color: #efa320;
}

1 个答案:

答案 0 :(得分:0)

我用Google搜索并找到以下链接,这可能有助于您的内联问题水平菜单http://openegg.ca/creating-a-horizontal-menu/