Watch Star Fork

XiaoSK / metisMenu-statefulJavaScriptMIT

Sign up for free
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
Copy Edit Raw Blame History 1.14 KB XiaoSK authored 2014-09-21 10:36 . 说明更新



metisMenu-stateful 是“有状态”的 metisMenu 。其综合了 onokumus/metisMenu v1.0.3 和 valgen/metisMenu 的特性,并修正了各自的一些 BUG 。此外,还增加了对当前所展开菜单的高亮显示支持。后续将根据原 repo 跟进新特性更新。


  1. Add a Style Class(Default:.nav-current) in Your CSS if You Want to Highlight the Current Menu

    .nav-current {
        font-weight: bold;
        color: #5cb85c;
    } /* Custom by yourself */
  2. Include Twitter Bootstrap StyleSheet

  3. Include metisMenu StyleSheet

    <link rel="stylesheet" href="metismenu.css">
  4. Include jQuery

    <script src="jquery.min.js"></script>
  5. Include Twitter Bootstrap Script

    <script src="bootstrap.min.js"></script>
  6. Include metisMenu plugin's code

    <script src="metismenu.js"></script>
  7. Call the plugin:



MIT License

Comment ( 0 )

You need to Sign in for post a comment

11_float_left_people 11_float_left_close