每当网站加载到移动设备中时,一切都会正常加载。但是,一旦用户点击导航菜单并且它下降,所有墨水大约80%被半透明深灰色div覆盖。链接仍然可以点击,但它肯定会带来糟糕的移动用户体验。
我目前正在使用Wordpress中的“响应”主题。这个问题可能是由于我在几个月后添加/编辑的一些CSS来调整其容器的导航项目中心。当然,我经历了“检查元素”,禁用了我能做到的一切,仍然无法让div消失。
由于我还不确定这个问题究竟来自何处,这里的代码与类/主要嫌疑人“menu”和“main-nav”相关:
.js .main-nav {
clear: both;
position: relative;
margin: 0 auto;
background-color: #585858;
background-image: -webkit-gradient(linear, left top, left bottom, from(#585858), to(#3d3d3d));
background-image: -webkit-linear-gradient(top, #585858, #3d3d3d);
background-image: -moz-linear-gradient(top, #585858, #3d3d3d);
background-image: -ms-linear-gradient(top, #585858, #3d3d3d);
background-image: -o-linear-gradient(top, #585858, #3d3d3d);
background-image: linear-gradient(top, #585858, #3d3d3d);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#585858, endColorstr=#3d3d3d);
}
.js .main-nav .menu {
display: none;
position: absolute;
z-index: 1000;
top: 30px;
width: 100%;
}
.js .main-nav .menu ul {
margin-top: 1px;
}
.js .main-nav .menu li {
float: none;
border: none;
background-color: #fff;
}
.js .main-nav .menu li a {
height: 45px;
padding: 0 15px;
border: none;
border-bottom: 1px solid #f5f5f5;
color: #444;
text-shadow: none;
font-size: 13px;
font-weight: normal;
line-height: 45px;
text-align: left;
cursor: pointer;
}
.js .main-nav .menu li.current_page_item,
.js .menu .current_page_item a,
.js .menu .current-menu-item a {
background-color: #f5f5f5;
}
.js .main-nav .menu li li:hover {
background: none !important;
}
.js .main-nav .menu li li a {
position: relative;
padding: 0 10px 0 30px;
}
.js .main-nav .menu li li li a {
position: relative;
padding: 0 10px 0 40px;
}
.js .main-nav .menu li a:hover,
.js .main-nav .menu li li a:hover {
background-color: #f5f5f5 !important;
background-image: none;
filter: none;
}
.js .main-nav .menu li li a::before {
position: absolute;
top: 0;
left: 20px;
content: "\2013";
}
.js .main-nav .menu li li li a::before {
position: absolute;
top: 0;
left: 20px;
content: "\2013";
}
.js .main-nav .menu li li li a::after {
position: absolute;
top: 0;
left: 30px;
content: "\2013";
}
.js .main-nav .menu li ul {
visibility: visible;
position: static;
background-color: #fff;
}
.js .main-nav .menu ul {
min-width: 0;
}
.js .main-nav #responsive_current_menu_item {
display: block;
padding: 5px 40px 5px 10px;
color: #fff;
font-weight: 700;
cursor: pointer;
}
.js .main-nav a#responsive_menu_button {
display: block;
position: absolute;
top: 0;
left: 100%;
width: 23px;
height: 30px;
margin-left: -30px;
background: url("../images/select-icons.png") 0 5px no-repeat;
cursor: pointer;
}
.js .main-nav a#responsive_menu_button.responsive-toggle-open {
background: url("../images/select-icons.png") 0 -46px no-repeat;
}
屏幕截图:http://i58.tinypic.com/23vlxmv.png
网址:http://www.medallionenergy.com
如果需要任何其他信息,请与我们联系。谢谢!