2017-07-11 179 views
0

我已經開始學習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> 

回答

0

您忘記關閉您的<select>字段。

+0

謝謝。非常感謝,謝謝。 –