Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

index.html 4.0 KiB

3 lat temu
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <meta name="description" content="">
  8. <meta name="author" content="">
  9. <link rel="icon" href="../../favicon.ico">
  10. <title>Fixed Top Navbar Example for Bootstrap</title>
  11. <!-- Bootstrap core CSS -->
  12. <link href="../../dist/css/bootstrap.min.css" rel="stylesheet">
  13. <!-- Custom styles for this template -->
  14. <link href="navbar-fixed-top.css" rel="stylesheet">
  15. <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
  16. <!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
  17. <script src="../../assets/js/ie-emulation-modes-warning.js"></script>
  18. <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
  19. <!--[if lt IE 9]>
  20. <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  21. <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  22. <![endif]-->
  23. </head>
  24. <body>
  25. <!-- Fixed navbar -->
  26. <nav class="navbar navbar-default navbar-fixed-top" role="navigation">
  27. <div class="container">
  28. <div class="navbar-header">
  29. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
  30. <span class="sr-only">Toggle navigation</span>
  31. <span class="icon-bar"></span>
  32. <span class="icon-bar"></span>
  33. <span class="icon-bar"></span>
  34. </button>
  35. <a class="navbar-brand" href="#">Project name</a>
  36. </div>
  37. <div id="navbar" class="navbar-collapse collapse">
  38. <ul class="nav navbar-nav">
  39. <li class="active"><a href="#">Home</a></li>
  40. <li><a href="#about">About</a></li>
  41. <li><a href="#contact">Contact</a></li>
  42. <li class="dropdown">
  43. <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <span class="caret"></span></a>
  44. <ul class="dropdown-menu" role="menu">
  45. <li><a href="#">Action</a></li>
  46. <li><a href="#">Another action</a></li>
  47. <li><a href="#">Something else here</a></li>
  48. <li class="divider"></li>
  49. <li class="dropdown-header">Nav header</li>
  50. <li><a href="#">Separated link</a></li>
  51. <li><a href="#">One more separated link</a></li>
  52. </ul>
  53. </li>
  54. </ul>
  55. <ul class="nav navbar-nav navbar-right">
  56. <li><a href="../navbar/">Default</a></li>
  57. <li><a href="../navbar-static-top/">Static top</a></li>
  58. <li class="active"><a href="./">Fixed top</a></li>
  59. </ul>
  60. </div><!--/.nav-collapse -->
  61. </div>
  62. </nav>
  63. <div class="container">
  64. <!-- Main component for a primary marketing message or call to action -->
  65. <div class="jumbotron">
  66. <h1>Navbar example</h1>
  67. <p>This example is a quick exercise to illustrate how the default, static and fixed to top navbar work. It includes the responsive CSS and HTML, so it also adapts to your viewport and device.</p>
  68. <p>To see the difference between static and fixed top navbars, just scroll.</p>
  69. <p>
  70. <a class="btn btn-lg btn-primary" href="../../components/#navbar" role="button">View navbar docs &raquo;</a>
  71. </p>
  72. </div>
  73. </div> <!-- /container -->
  74. <!-- Bootstrap core JavaScript
  75. ================================================== -->
  76. <!-- Placed at the end of the document so the pages load faster -->
  77. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
  78. <script src="../../dist/js/bootstrap.min.js"></script>
  79. <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
  80. <script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
  81. </body>
  82. </html>