Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/34.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 如何阻止顶部标题塌陷到汉堡包菜单中(响应)?_Html_Css - Fatal编程技术网

Html 如何阻止顶部标题塌陷到汉堡包菜单中(响应)?

Html 如何阻止顶部标题塌陷到汉堡包菜单中(响应)?,html,css,Html,Css,对不起,我在尽力回答你的问题 我的Wordpress网站上有一个顶级菜单。我只有几个短链接,它们可以放在手机屏幕上。我不希望菜单像现在一样折叠成汉堡包菜单 现在代码上写着: .mobile-menu-trigger, .ham-menu-trigger { position: relative; display: table-cell; vertical-align: middle; padding: 30px 0; padding: 3rem 0;

对不起,我在尽力回答你的问题

我的Wordpress网站上有一个顶级菜单。我只有几个短链接,它们可以放在手机屏幕上。我不希望菜单像现在一样折叠成汉堡包菜单

现在代码上写着:


.mobile-menu-trigger,
.ham-menu-trigger {
    position: relative;
    display: table-cell;
    vertical-align: middle; 
    padding: 30px 0;
    padding: 3rem 0;
}

.mobile-menu-trigger {
    width: 60px;
    width: 6rem;
}

.ham-menu-trigger {
    width: 24px;
    width: 2.4rem;
    display: none;
}

.header-hamburger .ham-menu-trigger {
    display: table-cell;
}

.mobile-menu-trigger-container,
.ham-menu-trigger-container {
    cursor: pointer;    
    position: relative;
    width: 24px;
    width: 2.4rem;
}

.mobile-menu-trigger-stick,
.ham-menu-trigger-stick {
    height: 4px;
    height: 0.4rem;
    width: 24px;
    width: 2.4rem;
    background-color: currentColor;
    margin-bottom: 4px;
    margin-bottom: 0.4rem;
}

.mobile-menu-trigger-stick:last-child,
.ham-menu-trigger-stick:last-child {
    margin-bottom: 0;   
}
HTML是

               <div class="bnt-container">

                   <?php bento_mobile_menu(); ?>

                   <?php bento_primary_menu(); ?>

               </div>
           </header> 

我希望你能帮我保持菜单的全宽,就像它在桌面上一样


提前谢谢:)

你也能提供
html
吗?@johannchopin我更新了帖子,希望对你有所帮助。一个多小时以来,我一直试图通过反复试验对其进行分类,但我就是想不出来。