超简单的自适应导航菜单
XML/HTML Code
- <header>
- <!-- responsive nav bar -->
- <div class="nav-bar">
- <a href=""><i class="fa fa-bars"></i><span>Menu</span></a>
- </div>
- <!-- navigation -->
- <nav>
- <ul>
- <li><a href="#"><i class="fa fa-home"></i>Home</a></li>
- <li><a href="#"><i class="fa fa-cog"></i>About</a></li>
- <li class="sub-menu">
- <a href="#"><i class="fa fa-street-view"></i>Galerry <i class="fa fa-angle-down"></i></a>
- <!-- children nav -->
- <ul class="children">
- <li><a href=""><span>-</span> Sub item 1</a></li>
- <li><a href=""><span>-</span> Sub item 2</a></li>
- <li><a href=""><span>-</span> Sub item 3</a></li>
- </ul>
- </li>
- <li class="sub-menu"><a href="#"><i class="fa fa-eye-slash"></i>Blog <i class="fa fa-angle-down"></i></a>
- <ul class="children">
- <li><a href=""><span>-</span> Sub item 1</a></li>
- <li><a href=""><span>-</span> Sub item 2</a></li>
- <li><a href=""><span>-</span> Sub item 3</a></li>
- </ul>
- </li>
- <li><a href="#"><i class="fa fa-envelope"></i>Contact</a></li>
- </ul>
- </nav> <!-- navigation end -->
- </header> <!-- header end -->
原文地址:http://www.freejs.net/article_daohangcaidan_722.html