css - 帮我弄一下IE的CSS

标签 css internet-explorer firefox internet-explorer-9

我的网站有问题,www.diaplasisgym.com .问题是子菜单。它在 Firefox、Chrome 和 Safari 中运行良好,但如果您使用 IE 打开它,滑动条会隐藏子菜单。我该如何解决这个问题?

这里是菜单和子菜单的代码:

  #mainMenu {  
    position:absolute;   
    bottom:-80px;   
    left:0px;  
    background:url(images/menu.png) no-repeat;   
    width: 961px;   
    height:98px;   
} 

#mainMenu ul li {     
    float:right;     
    height:70px; 
}

#mainMenu ul li a {     
    font-weight:bold;    
    display:block;     
    color:#ffffff;
    padding:25px 20px 0;     
    font-size:15px;
}

#mainMenu ul li a span {     
    font-size:10px;         
    color:#999;

}

#mainMenu ul li a:hover {   
    text-decoration:none;    
    color:#2fc8ff;
}

#mainMenu.ddsmoothmenu ul{ 
    margin: 0; 
    padding: 0; 
    list-style-type: none; 
}

/*Top level list items*/
#mainMenu.ddsmoothmenu ul li { 
    position: relative;
    display: inline;
    float: left; 
}

/*Top level menu link items style*/

* html #mainMenu.ddsmoothmenu ul li a{ /*IE6 hack to get sub menu links to
    behave correctly*/ display:
        inline-block; 
}


/*1st sub level menu*/
#mainMenu.ddsmoothmenu ul li ul{
    position: absolute; l
        eft: 0; 
    display: none; /*collapse all sub menus to begin with*/ visibility: hidden;
    width:auto;
    padding-bottom:7px;
    background:
        url(images/secondarydropdown.png)
        repeat-y; box-shadow: 3px 6px 7px 1px
        rgba(0, 0, 0, 0.5);
    -moz-box-shadow:3px 6px 7px 1px rgba(0, 0, 0, 0.5);
    -webkit-box-shadow: 3px 6px 7px 1px rgba(0, 0, 0, 0.5); 
    border-radius:8px; 
    -moz-border-radius: 8px;
    -webkit-border-radius: 8px; 
    border-top-left-radius: 0px;
    -moz-border-radius-topleft: 0px; 
    -webkit-border-top-left-radius: 0px; 
    border-top-right-radius: 0px;
    -moz-border-radius-topright: 0px; 
    -webkit-border-top-right-radius: 0px; 
    border: 1px solid #232323; 
    border-top:none; /*border-bottom:1px solid #222;*/ 
}

/*Sub level menu list items (undo
style from Top level List Items)*/
#mainMenu.ddsmoothmenu ul li ul li{ 
    float: none; 
    display: list-item;
    padding:0; 
    height:3%; 
}


/* Sub level menu links style */
#mainMenu.ddsmoothmenu ul li ul li a, #mainMenu.ddsmoothmenu ul li ul li a:hover{ 
    text-align:left;
    /*background:#000;*/
    line-height:20%;
    font-size:13px; 
    padding: 22px 5px 15px 28px; 
    color: #ffffff;  
    font-family:
        Century Gothic, Arial, sans-serif; 
    text-shadow: 1px 1px 1px rgba(0, 0, 0,0.3);  
    background: url(images/secondary-dropdown-bullet.png)
        no-repeat 15px 20px; z-index:9999; 
}

#mainMenu.ddsmoothmenu ul li ul li a:hover {     
    color:#1FA2E1;     
}

#mainMenu.ddsmoothmenu ul li ul li a.last, #mainMenu.ddsmoothmenu ul li
ul li a.last:hover {     
    border:none; 
}

/* Holly Hack for IE \*/
* html #mainMenu.ddsmoothmenu{
    height: 1%;
} /*Holly Hack for IE7 and below*/

最佳答案

这是 IE 7 的答案 将其粘贴到您的样式表中

/* IE 7 Fix */

#header{z-index:1001 !important;}
#content{z-index:100 !important;} 

关于css - 帮我弄一下IE的CSS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5475414/

相关文章:

html - 使用 CSS 以错误的方向显示数字

css - 如何为div设置透明颜色?它应该适用于 Firefox 和 IE

javascript - Internet Explorer 8 事件因透明 parent 而失败

html - CSS:圆 Angular + 不透明度 = 图像在 Firefox 19 中消失

html - IOS 不透明度过渡不是很好的效果

html - Bootstrap 中的垂直对齐响应容器

.net - 我可以在 IE8 中显示 windows 用户控件吗

css - FireFox 在样式编辑器中显示 css 文件,但在网络监视器中不显示

python - 从外部操纵 Firefox 的 View

javascript - 使用 Scroll Magic 的简单补间本地副本不起作用