• Bootstrap基础5(各类型导航)


    <!DOCTYPE html>
    <html lang="en">
    <head>
    <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>Bootstrap导航</title>
    <link rel="stylesheet" href="css/bootstrap.css">
    <script src="js/jquery-3.2.1.js"> </script>
    <script src="js/bootstrap.js"></script>
    </head>
    </head>
    <body>
    <div class="container">
    <h2 class="page-header">标签页导航</h2>
    <ul class="nav nav-tabs">
    <li class="active"><a href="">守望先锋</a></li>
    <li ><a href="">虚幻争霸</a></li>
    <li ><a href="">神之浩劫</a></li>
    <li ><a href="">枪火游侠</a></li>
    </ul>
    </div>
    <h3 class="page-header">胶囊式导航</h3>
    <ul class="nav nav-pills">
    <li class="active"><a href="">守望先锋</a></li>
    <li ><a href="">虚幻争霸</a></li>
    <li ><a href="">神之浩劫</a></li>
    <li ><a href="">枪火游侠</a></li>
    </ul>


    <h3 class="page-header">胶囊式垂直导航</h3>
    <ul class="nav nav-pills nav-stacked">
    <li class="active"><a href="">守望先锋</a></li>
    <li ><a href="">虚幻争霸</a></li>
    <li ><a href="">神之浩劫</a></li>
    <li ><a href="">枪火游侠</a></li>
    </ul>
    <h3 class="page-header">胶囊式自适应导航</h3>
    <ul class="nav nav-pills nav-justified">
    <li class="active"><a href="">守望先锋</a></li>
    <li ><a href="">虚幻争霸</a></li>
    <li ><a href="">神之浩劫</a></li>
    <li ><a href="">枪火游侠</a></li>
    </ul>
    <h3 class="page-header">多级下拉菜单导航(二级导航)</h3>
    <ul class="nav nav-pills nav-justified"> <!--胶囊导航-->
    <li class="active"><a href="">虚幻争霸</a></li>
    <li ><a href="#" class="dropdown-toggle" data-toggle="dropdown">守望先锋<span class="caret"></span></a>
    <ul class="dropdown-menu nav-justified"> <!--隐藏的下拉菜单-->
    <li><a href="#">网易游戏</a></li>
    <li><a href="#">腾讯游戏</a></li>
    <li><a href="#">畅游在线</a></li>
    <li><a href="#">世纪天成</a></li>
    </ul>
    </li>
    <li ><a href="">神之浩劫</a></li>
    <li ><a href="">枪火游侠</a></li>
    </ul>
    </div>

    </body>
    </html>
  • 相关阅读:
    A1061 Dating [字符串比较]
    A1058 A+B in Hogwarts [进制转换]
    A1027 Colors in Mars[简单模拟--进制转换]
    A1031 Hello World for U[图形输出]
    刷PAT的一些思考—Day 1
    A1009 Product of Polynomials[简单模拟--多项式相乘]
    A1002 A+B for Polynomials[简单模拟--多项式相加]
    A1046 Shortest Distance [简单模拟--卡算法复杂度]
    1009 说反话
    usb之配置描述符
  • 原文地址:https://www.cnblogs.com/YoogaChan/p/6892060.html
Copyright © 2020-2023  润新知