css - 菜单按钮不起作用(wordpress 主题)
问题描述
这是一个 wordpress 网站,来自我的 style.css:
.sf-menu, .sf-menu * { margin: 0; padding: 0; list-style: none; }
.sf-menu li { position: relative }
.sf-menu ul { position: absolute; display: none; top: 100%; left: 0; z-index: 99; }
.sf-menu > li { float: left }
.sf-menu li:hover > ul, .sf-menu li.sfHover > ul { display: block }
.sf-menu a { display: block; position: relative; }
.sf-menu ul ul { top: 0; left: 100%; }
.sf-arrows .sf-with-ul:after { content: "\f347"; display: inline-block; -webkit-font-smoothing: antialiased; font: normal 12px/16px 'dashicons'; vertical-align: top; margin: 5px 0px 0 4px; }
.sf-arrows ul .sf-with-ul:after { content: "\f345"; display: inline-block; -webkit-font-smoothing: antialiased; font: normal 12px/22px 'dashicons'; float: right; vertical-align: top; margin: 2px 0 0 4px; }
.sf-arrows ul li > .sf-with-ul:focus:after, .sf-arrows ul li:hover > .sf-with-ul:after, .sf-arrows ul .sfHover > .sf-with-ul:after { border-left-color: white }
.navbar-toggle { display: none; position: absolute; left: auto; top: 5px; padding: 14px 13px; border-radius: 2px; background: rgba(0, 0, 0, 0.33); }
.navbar-toggle .icon-bar { display: block; width: 25px; height: 2px; border-radius: 1px; background: #fff; }
.navbar-toggle .icon-bar + .icon-bar { margin-top: 4px }
网站上的菜单块不会展开。(菜单块仅在页面处于移动视图模式时出现。)
我应该如何解决这个问题?
解决方案
在这种情况下,请确保您已正确安装主题。那是我犯的错误。
推荐阅读
- c# - 如何仅在按下按钮时将对象移动特定量?
- python - 获取外部导入的python内置函数代码
- model-view-controller - 使用 VS 的 MVC:为什么在使用 View() 时出现错误,但在使用 View(viewname) 时却没有?
- python - 为什么 img[0:overlap,:,:] = 1 工作,但在 numpy 但不是 img = img[0:overlap,:,:] = 1 没有?
- sql - 如何确定 Oracle ORA_Hash 函数的最佳 Max_bucket 和 Seed_value?
- asp.net - 为什么我的注册表有效而我的登录表格无效
- avr - 如何以编程方式识别连接到我的计算机的微控制器
- c# - 带有异步 lambda 的 Parallel.ForEach 等待所有迭代完成
- java - 在 Netty 中解码和编码多种数据包类型
- php - AJAX GET & POST 方法在 Laravel 中不起作用。显示错误