WordPress 菜单与其他地方的子菜单

发布于 2025-01-08 14:55:43 字数 151 浏览 2 评论 0原文

我很想使用 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.
enter image description here

Thank you. Any suggestions how to achieve this.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

甜中书 2025-01-15 14:55:43

您可以通过菜单面板中的 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 the liwould have to de displayed inline.
A sample code would be useful to sort out details but this should work.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文