Bootstrap不显示按钮

时间:2017-07-11 15:26:23

标签: html css twitter-bootstrap

我今天开始学习Bootstrap,我想问几个问题。

我一直试图在这个代码上显示按钮,只是它没有相应的响应。因为它没有清楚地显示按钮。

代码看起来像这样。

<?php include 'header.php'
?>

<nav class="navbar navbar-inverse">
  <div class="container-fluid">
    <div class="navbar-header">
      <a class="navbar-brand" href="#">WebSiteName</a>
    </div>
    <ul class="nav navbar-nav">
      <li class="active"><a href="#">Home</a></li>
      <li><a href="#">Page 1</a></li>
      <li><a href="#">Page 2</a></li>
    </ul>
    <ul class="nav navbar-nav navbar-right">
      <li><a href="#"><span class="glyphicon glyphicon-user"></span> Sign Up</a></li>
      <li><a href="#"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
    </ul>
  </div>
</nav>

<div class="col-md-12" >
    <div class ="page-header">
    <h1>This is a Test header</h1>
    </div>
    </div>

    <div class ="col-md-12">
    <form name="samris" id="samris" method="post" action="hamish.php"/>
    <table class ='table table-hover table-responsive table-bordered'>

    <div class ="form-group">
    <label for "firstname"> First Name :</label>
    <input type="text" class="form-control" id="firstname" />
    </div>

    <div class ="form-group">
    <label for "firstname"> Last Name :</label>
    <input type="text" class="form-control" id="firstname" />
    </div>

    <div class ="form-group">
   <select class="form-control"id="" name="">
   <option>Please Select</option>
   <option>List 1</option>
   <option>List 1</option>
   <option>List 1</option>
    </div>


    </div>
    <button type="submit" class="btn btn-default">Submit</button>
    </form>
    </div>
</div>

</body>
</html>

1 个答案:

答案 0 :(得分:0)

您忘了关闭<select>字段。