我想以 990px 而不是 768 的宽度显示 humburger。我在样式表中尝试了此代码
@media (min-width: 768px) and (max-width: 1000px) { .collapse {
display: none !important; }}
但它不起作用。
你需要使用
@media (min-width: 768px) and (max-width: 1000px) {.collapse {display: inline !important; }}
然后display:none;
样式设置为包含汉堡菜单的元素。
例如:<span class="collapse" style="display:none;">Hamburger menu</span>