Bootstrap 頁(yè)面標(biāo)題

2021-10-15 13:47 更新

Bootstrap 頁(yè)面標(biāo)題(Page Header)

頁(yè)面標(biāo)題(Page Header)是個(gè)不錯(cuò)的功能,它會(huì)在網(wǎng)頁(yè)標(biāo)題四周添加適當(dāng)?shù)拈g距。當(dāng)一個(gè)網(wǎng)頁(yè)中有多個(gè)標(biāo)題且每個(gè)標(biāo)題之間需要添加一定的間距時(shí),頁(yè)面標(biāo)題這個(gè)功能就顯得特別有用。如需使用頁(yè)面標(biāo)題(Page Header),請(qǐng)把您的標(biāo)題放置在帶有 class .page-header<div> 中:

<!DOCTYPE html>
<html>
<head>
   <title>Bootstrap 實(shí)例 - 頁(yè)面標(biāo)題</title>
   <link  rel="external nofollow" target="_blank"  rel="stylesheet">
   <script src="http://cdn.bootcss.com/jquery/2.1.1/jquery.min.js" rel="external nofollow" ></script>
   <script src="http://cdn.bootcss.com/bootstrap/3.3.6/js/bootstrap.min.js" rel="external nofollow" ></script>
</head>
<body>

<div class="page-header">
   <h1>頁(yè)面標(biāo)題實(shí)例
      <small>子標(biāo)題</small>
   </h1>
</div>
<p>這是一個(gè)示例文本。這是一個(gè)示例文本。這是一個(gè)示例文本。這是一個(gè)示例文本。這是一個(gè)示例文本。</p>


</body>
</html>

結(jié)果如下所示:

頁(yè)面標(biāo)題(Page Header)
以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)