Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/83.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/32.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 创建一个静态菜单CSS_Html_Css_Wordpress_Web - Fatal编程技术网

Html 创建一个静态菜单CSS

Html 创建一个静态菜单CSS,html,css,wordpress,web,Html,Css,Wordpress,Web,有没有办法将Wordpress DIVI站点中的菜单设置为静态 #main-header { position: fixed !important; } 比如说像 菜单停留在顶部,当你向下滚动时,你不再看到它。因此,它不是一个粘性菜单。请分享你的想法 干杯 对于Divi主题,最简单的解决方案就是在主题设置中设置它。Divi->General->固定导航栏,然后将其关闭。查看附带的屏幕截图: 顺便说一句,将位置设置为“固定”将使菜单始终保持在浏览器中的同一位置,因此它将与您想要的完全相反

有没有办法将Wordpress DIVI站点中的菜单设置为静态

#main-header {
    position: fixed !important;
}
比如说像

菜单停留在顶部,当你向下滚动时,你不再看到它。因此,它不是一个粘性菜单。请分享你的想法

干杯


对于Divi主题,最简单的解决方案就是在主题设置中设置它。Divi->General->固定导航栏,然后将其关闭。查看附带的屏幕截图:


顺便说一句,将位置设置为“固定”将使菜单始终保持在浏览器中的同一位置,因此它将与您想要的完全相反。让我知道这是否有帮助

您在谈论哪个菜单?位置:ralative@pol关上一个。你的意思是
位置:相对虽然上下文和解释会有帮助。谢谢好心的先生!我将永远感激你!祝你有一个和谐的星期一!很高兴我帮了忙!如果你想让我的星期一变得更好,请选择我的答案作为你问题的公认答案,左边应该有一个复选标记:)