Safari下拉菜单包含内容

时间:2016-05-23 08:42:37

标签: html css wordpress safari

我的网站为www.denieuwekhl.nl。当您进行safari时,您可以使其响应,并点击下拉菜单覆盖内容的菜单。你不能用safari检查,所以很难看出问题出在哪里。在我所有的其他浏览器上,它正在运行。显示屏是阻止的。

这是一个wordpress网站。我使用了插件max mege菜单。麻省它必须做些什么呢?但我不这么认为。

2 个答案:

答案 0 :(得分:1)

Safari无法识别height: unset。将height: unset更改为height: auto以解决此问题。

@media screen and (max-width: 1022px) and (min-width: 767px) {
   .site-header {
        height: auto;
    }
}

答案 1 :(得分:1)

由于您为.site标题类编写了错误的CSS,因此无效 媒体查询:

@media screen and (max-width: 1022px) and (min-width: 767px){
 .site-header{
  height: auto;
  width: 79%;
  margin-right: 2%;
  margin-bottom: 5px;
 } 

设置身高:自动;而不是高度:未设置;