WordPress 菜单与其他地方的子菜单
我很想使用 WordPress 内置的菜单系统,我需要子菜单。是否可以在悬停时在其他位置显示菜单项子菜单。参见图片。
谢谢。任何如何实现这一目标的建议。
I would love to use wordpress built in menu system and I need sub-menus. Is it possible to on hover show that menu items sub-menu in other place. See image.
Thank you. Any suggestions how to achieve this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以通过菜单面板中的 CMS 在父标签下动态创建子菜单。然后你可以在加载时隐藏它并在父级悬停时显示它。但是,子菜单必须具有
position:absolute
,并且根据您的示例,li
必须显示内联
。示例代码对于整理细节很有用,但这应该可行。
You can create the Sub-menu via the CMS in the menu panel dinamically under the parent label. Then you can just hide it onload and show it on the parent's hover. However the sub-menu must have
position: absolute
and, given your example theli
would have to de displayedinline
.A sample code would be useful to sort out details but this should work.