2014-11-01 63 views
0

我正在爲我的高中機器人團隊製作一個網站,而我對html和css完全陌生。爲什麼其中的一個欄目(melanie aguilar欄目)的功能不如其他欄目?引導程序中的一列如何不能正常工作?

網站 - robotichive3774.com

<!DOCTYPE html> 
<html> 
<head> 

<title>Robotics Team 3774 Home</title> 

<!-- Link to stylesheet --> 
<link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.css"> 
<link rel="stylesheet" type="text/css" href="css/index1.css"> 


<!-- Mobile Scaling --> 
<meta name="viewport" content="width=device-width, initial-scale=1"> 

</head> 

<body> 
<!-------------------- UNIFORM CODE -------------------------> 
<!-- Navbar --> 

<div class="navbar navbar-inverse navbar-fixed-top" role="navigation"> 
    <div class="container"> 
     <div class="navbar-header"> 
      <a class="navbar-brand" href="/Home">Team 3774</a> 
     </div> 
     <div class="navbar-collapse collapse" style="height: 0.866667px;"> 
      <ul class="nav navbar-nav"> 
       <li><a href="/Team Bio">Team Bio</a></li> 
       <li><a href="/Our Robot">Our Robot</a></li> 
       <li><a href="/Our Coach">Our Coach</a></li> 
       <li><a href="/Gallery">Gallery</a></li> 
       <li><a href="/Outreach">Outreach</a></li> 
       <li><a href="/Youtube">Youtube</a></li> 
      </ul> 
     </div> 
    </div> 
</div> 

<!-- Banner --> 
<div id="top-jumbotron" class="jumbotron"> 
    <img src="/Images/Banner.png" class="img-responsive" alt="Responsive image"> 
</div> 
<!-----------------------------------------------------------> 


<div class="jumbotron"> 
    <h1>Team 3774 Member Bio</h1> 
    <p>Here you can find links to every member with some information on each of them.</p> 
</div> 

<div class="container"> 
    <div class="row"> 
     <div class="col-md-4"> 
     <div class="bubble"> 
      <h2>Abanoub Boules</h2> 
      <p>Team Captain, Engineer, Coder</p> 
      <a href="/Team Bio/Abanoub.html" type="button" class="btn btn-default">Read More</a> 
     </div> 
     </div> 
     <div class="col-md-4"> 
     <div class="bubble"> 
      <h2>Andre Bernardo</h2> 
      <p>Head Engineer, Assistant Captain</p> 
      <a href="/Team Bio/Andre.html" type="button" class="btn btn-default">Read More</a> 
     </div> 
     </div> 
     <div class="col-md-4"> 
     <div class="bubble"> 
      <h2>Leo Scarano</h2> 
      <p>Head Coder, Head Web-master</p> 
      <a href="/Team Bio/Leo.html" type="button" class="btn btn-default">Read More</a> 
     </div> 
     </div> 
     <div class="col-md-4"> 
     <div class="bubble"> 
      <h2>Kristen Kaldas</h2> 
      <p>Coder, Head Documenter</p> 
      <a href="/Team Bio/Abanoub.html" type="button" class="btn btn-default">Read More</a> 
     </div> 
     </div> 
     <div class="col-md-4"> 
     <div class="bubble"> 
      <h2>Anish Patel</h2> 
      <p>Engineer, Head 3D Modelling</p> 
      <a href="/Team Bio/Abanoub.html" type="button" class="btn btn-default">Read More</a> 
     </div> 
     </div> 
     <div class="col-md-4"> 
     <div class="bubble"> 
      <h2>Andrew Wojtkowski</h2> 
      <p>Coder, Web-master, Engineer</p> 
      <a href="/Team Bio/Abanoub.html" type="button" class="btn btn-default">Read More</a> 
     </div> 
     </div> 
     <div class="col-md-4"> 
     <div class="bubble"> 
      <h2>Furhan Ashraf</h2> 
      <p>Financial Advisor, Engineer</p> 
      <a href="/Team Bio/Abanoub.html" type="button" class="btn btn-default">Read More</a> 
     </div> 
     </div> 
     <div class="col-md-4"> 
     <div class="bubble"> 
      <h2>Kenneth Rebbecke</h2> 
      <p>Engineer, Documenter</p> 
      <a href="/Team Bio/Abanoub.html" type="button" class="btn btn-default">Read More</a> 
     </div> 
     </div> 
     <div class="col-md-4"> 
     <div class="bubble"> 
      <h2>Mina Hanna</h2> 
      <p>Engineer, Coder</p> 
      <a href="/Team Bio/Abanoub.html" type="button" class="btn btn-default">Read More</a> 
     </div> 
     <div class="col-md-4"> 
     <div class="bubble" id="special"> 
      <h2>Melanie Aguilar</h2> 
      <p>Secretary, Mascot</p> 
      <a href="/Team Bio/Abanoub.html" type="button" class="btn btn-default">Read More</a> 
     </div> 
     </div> 
    </div> 
</div> 


</body> 
</html> 





#top-jumbotron 
{ 
    padding-left:0; 
    padding-right:0; 
    padding-bottom:0; 
    margin-bottom: 0; 
} 

body 
{ 
background-color: #E8E8E8; 
} 

.bubble 
{ 
background-color: #ffffff; 
padding: 20px; 
width: 95%; 
height: 175px; 
border-radius: 15px; 
margin-top: 10px; 
margin-bottom: 10px; 
} 

#special 
{ 
float: left; 
} 
+0

Page http://www.robotichive3774.com/Team%20Bio/ – 2014-11-01 20:09:59

回答

1

你只是錯過了一個/ div - 我注意到你有一個div裏面的div,記得你需要關閉兩個。我使用Netbeans for html,它會告訴你是否有問題。如果你在Mac上,我被告知科莫多也很好。一個好的編輯程序是一個生活救星!

固定碼:

<div class="col-md-4"> 
     <div class="bubble"> 
      <h2>Mina Hanna</h2> 
      <p>Engineer, Coder</p> 
      <a href="/Team Bio/Abanoub.html" type="button" class="btn btn-default">Read More</a> 
     </div> 
</div> <!-- this one! --> 

編輯有幾件事錯的代碼和邁克爾指出一個出來 - 正如他所說,引導是一個網格。所以想象一下(我實際上通常會畫)一個分成12列的盒子。對於每個行div,只能在列中添加12個列。你可以打破它,它通常仍然會工作,因爲div會溢出並向下移動,但這不是最佳實踐。如果修復缺少的div末端標記不起作用,請嘗試修復行結構,以便在頁面上最多隻添加12列

+0

非常感謝! – 2014-11-01 20:51:32

+0

很高興我可以幫助 - 快樂編碼:) – 2014-11-03 22:43:16

0

你可以有像你指定一個佈局,但是它不會不一定每白手起家工作打算的功能,因此它通常是一個好主意,按照他們的建議行結構體。

Bootstrap包含一個響應式移動第一流體網格系統,可隨着設備或視口尺寸的增加適當擴展至12列。

而不是

<div class="row"> 
    <div class="col-md-4"></div> 
    <div class="col-md-4"></div> 
    <div class="col-md-4"></div> 
    <div class="col-md-4"></div> 
    <div class="col-md-4"></div> 
    <div class="col-md-4"></div> 
    ... 
</div> 

你應該做的,如:

<div class="row"> 
    <div class="col-md-2"></div> 
    <div class="col-md-2"></div> 
    <div class="col-md-2"></div> 
    <div class="col-md-2"></div> 
    <div class="col-md-2"></div> 
    <div class="col-md-2"></div> 

</div> 

在同一行,數字的下面中的每一列定義中的連字符的總和加起來應該12

+0

謝謝非常! – 2014-11-01 20:50:41