【问题标题】:Toggle Menu is not showing in mobile view切换菜单未在移动视图中显示
【发布时间】:2018-07-18 14:58:26
【问题描述】:

我的切换菜单栏未在移动视图中显示。我的网站是http://gtcgroups.com/。当我减小窗口大小时,菜单不显示。如何修复它。我目前正在使用 WPtouch 插件,但它没有显示网站徽标,这就是为什么我想通过切换菜单的自定义代码来做到这一点。我尝试了不同的代码但没有工作

header .menu .nav {
    display: none !important;
}
header .menu.active .nav {
    display: block !important;
}

【问题讨论】:

  • 你应该带上你的代码。所以我们可以帮助你。
  • 我试过这个:header .menu .nav { display: none !important; } header .menu.active .nav { display: block !important; } 问题已更新

标签: css wordpress menu header toggle


【解决方案1】:

这是因为您在 custom.css 中编写了 CSS

.header-wrap {
    height: 30px;
    width: 1200px;
    margin-top: 0px;
}
replace it by
.header-wrap {
    height: 30px;
    width: 1200px;
    margin-top: 0px;
    max-with:100%
}

【讨论】:

    猜你喜欢
    • 2015-07-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-09-23
    • 2017-04-22
    • 2018-01-19
    相关资源
    最近更新 更多