2modal-custombootstrap.html 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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="bootstrap-3.3.4/dist/css/bootstrap.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="modal fade" id="myModal">
  16. <!-- Sizing wrapper -->
  17. <!-- default width: 600px, modal-lg: 900px, modal-sm: 300px -->
  18. <div class="modal-dialog">
  19. <!-- Content wrapper -->
  20. <div class="modal-content">
  21. <!-- Modal header -->
  22. <div class="modal-header">
  23. <button type="button" class="close" data-dismiss="modal">&times;</button>
  24. <h4 class="modal-title">Welcome back!</h4>
  25. </div>
  26. <!-- Modal body -->
  27. <div class="modal-body">
  28. <h1>Hello readers!</h1>
  29. </div>
  30. <!-- Modal footer -->
  31. <div class="modal-footer">
  32. <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
  33. <button type="button" class="btn btn-primary" data-dismiss="modal">Save</button>
  34. </div>
  35. </div>
  36. </div>
  37. </div>
  38. <div class="container">
  39. <button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
  40. Trigger modal
  41. </button>
  42. <p>Do not use <kbd>lessc bootstrap.less &gt; bootstrap.css</kbd> to compile
  43. Bootstrap, use <kbd>npm install</kbd> then <kbd>grunt dist</kbd> instead.</p>
  44. <p>More info on
  45. <a href="http://getbootstrap.com/getting-started/#grunt">http://getbootstrap.com/getting-started/#grunt</a></p>
  46. </div>
  47. <!-- https://ajax.googleapis.com/ajax/libs/jquery/1.11.1.jquery.min.js -->
  48. <script src="../js/jquery-1.11.2.min.js"></script>
  49. <script src="bootstrap-3.3.4/dist/js/bootstrap.js"></script>
  50. </body>
  51. </html>