01dropdown.html 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <title>Blasting off with Bootstrap</title>
  5. <meta charset="utf-8" />
  6. <meta http-equiv="X-UA-COMPATIBLE" content="IE=Edge" />
  7. <meta name="viewport" content="width=device-width, initial-scale=1" />
  8. <link rel="stylesheet" href="../css/bootstrap.min.css"/>
  9. <!--[if lt IE 9]>
  10. <script src="../js/html5shiv.3-7-0.js"></script>
  11. <script src="../js/respond.1-4-2.min.js"></script>
  12. <![endif]-->
  13. </head>
  14. <body>
  15. <div class="container">
  16. <div class="panel">
  17. <div class="dropdown">
  18. <!-- right-clicking this link to open in a new tab will take you to the href -->
  19. <a data-toggle="dropdown" data-target="#" href="http://google.fr">
  20. Dropdown<span class="caret"></span>
  21. </a>
  22. <ul class="dropdown-menu">
  23. <li><a href="#">Item 1</a></li>
  24. <li><a href="#">Item 2</a></li>
  25. <li><a href="#">Item 3</a></li>
  26. <li><a href="#">Item 4</a></li>
  27. </ul>
  28. </div>
  29. </div>
  30. <div class="panel">
  31. <ul class="nav nav-pills">
  32. <li class="active"><a href="#">Home</a></li>
  33. <li class="dropdown">
  34. <a data-toggle="dropdown" data-target="#" href="http://google.fr">Profile<span class="caret"></span></a>
  35. <ul class="dropdown-menu">
  36. <li><a href="#">Item 1</a></li>
  37. <li><a href="#">Item 2</a></li>
  38. <li><a href="#">Item 3</a></li>
  39. <li><a href="#">Item 4</a></li>
  40. </ul>
  41. </li>
  42. <li><a href="#">Messages</a></li>
  43. </ul>
  44. </div>
  45. <!-- https://ajax.googleapis.com/ajax/libs/jquery/1.11.1.jquery.min.js -->
  46. <script src="../js/jquery-1.11.2.min.js"></script>
  47. <script src="../js/bootstrap.js"></script>
  48. </div>
  49. </body>
  50. </html>