【问题标题】:make responsive menu in wordpress在 wordpress 中制作响应式菜单
【发布时间】:2015-06-06 23:43:42
【问题描述】:

我在修改 wordpress 中的菜单时遇到问题。我正在尝试让它响应,但我无法做到,所以请帮帮我。

只需访问此链接即可查看我页面的图像和 css 流程。

https://drive.google.com/open?id=0B--TMsJz_cYVYnRnRFpBOVdXYzA&authuser=0

只看图片,看看使用的 div 样式,所以请解释我如何使用 css 制作下拉菜单来显示链接......

【问题讨论】:

    标签: html css wordpress-theming wordpress


    【解决方案1】:

    如果您想要一个专门用于响应式设计的菜单,您可以使用 jquery 插件,例如 meanThemes 中的 mean menu。

    https://github.com/meanthemes/meanMenu

    只需将 css 文件添加到您的主题(在标题中)

    <link rel="stylesheet" href="meanmenu.css" media="all" />
    

    在页脚中添加 jquery

    <script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
    <script src="jquery.meanmenu.js"></script>
    

    并使用(也在页脚中)将菜单初始化为容器

    jQuery(document).ready(function () {
        jQuery('header nav').meanmenu();
    });
    

    在您的文档中。准备就绪

    【讨论】:

      猜你喜欢
      • 2019-08-24
      • 2017-04-05
      • 1970-01-01
      • 1970-01-01
      • 2019-07-15
      • 1970-01-01
      • 2021-03-31
      • 1970-01-01
      • 2017-07-28
      相关资源
      最近更新 更多