12form-inline.html 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <title>Bootstrap grid system</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. <link rel="stylesheet" href="styles.css" />
  10. <!--[if lt IE 9]>
  11. <script src="../js/html5shiv.3-7-0.js"></script>
  12. <script src="../js/respond.1-4-2.min.js"></script>
  13. <![endif]-->
  14. </head>
  15. <body>
  16. <div class="container">
  17. <div class="page-header">
  18. <h1>Chapter 3
  19. <small>Exploring Bootstrap components: inline form</small>
  20. </h1>
  21. </div>
  22. <form class="form-inline">
  23. <div class="form-group">
  24. <input type="text" class="form-control" id="emailField" placeholder="Enter email" />
  25. </div>
  26. <div class="form-group">
  27. <input type="password" class="form-control" id="passwordField" placeholder="Password" />
  28. </div>
  29. <div class="checkbox">
  30. <label>
  31. <input type="checkbox" />Remember me
  32. </label>
  33. </div>
  34. <div class="radio">
  35. <label>
  36. <input name="gender" type="radio" value="Male" />Male
  37. <input name="gender" type="radio" value="Female" />Female
  38. </label>
  39. </div>
  40. <button type="submit" class="btn btn-primary">Sign in</button>
  41. </form>
  42. </div>
  43. <!-- https://ajax.googleapis.com/ajax/libs/jquery/1.11.1.jquery.min.js -->
  44. <script src="../js/jquery-1.11.2.min.js"></script>
  45. <script src="../js/bootstrap.js"></script>
  46. </body>
  47. </html>