2014-03-26 82 views
1

我想從this頁的特色部分複製排版。我把所有的花絮類放進去,但所有顯示的都是花絮分隔線。默認情況下,css中的Bootstrap 3中的特色類是否還是必須手動添加它們?

這裏是我的html

<!doctype html> 
<html lang="en"> 
<head> 
    <meta charset="UTF-8"> 
    <title>Mockup</title> 
    <?php include 'inc/head.php'; ?> 
</head> 
<body> 

    <div class="container"> 
     <div class="row"> 
      <div class="col-md-12"> 
       <hr class="featurette-divider"> 
       <div class="featurette featurette-shadow"> 
        <h2 class="featurette-heading">Testing 1...2...3... <span class="text-muted">Lets Go!</span></h2> 
       </div> 
      </div> 
     </div> 
    </div> 

</body> 
</html> 

謝謝!

回答

1

我不知道,但這裏是一些CSS,可以幫助你......

.featurette-divider { 
    margin: 80px 0; /* <hr> between each */ 
} 
.featurette { 
    padding-top: 120px; 
    overflow: hidden; /* Clear floats */ 
} 
.featurette-image { 
    margin-top: −120px; /* Vertically center image with the text */ 
} 
.featurette-heading { 
    font-size: 50px; 
    font-weight: 300; 
    line-height: 1; 
    letter-spacing: -1px; 
} 
.featurette-image.pull-left { 
    margin-right: 40px; 
} 
.featurette-image.pull-right { 
    margin-left: 40px; 
} 
0

要回答你的問題標題簡稱:不,你必須再手動包括。

沒有什麼能阻止你將自己的樣式或第三方樣式包添加到你的項目中。在引導CSS後簡單包含它們。

相關問題