Bootstrap navbar-text 類的用法


要在某個元素中包裝文字串,請使用類 .navbar-text。

你可以嘗試執行以下程式碼,以在 Bootstrap 中實現 navbar-text −

示例

線上演示

<!DOCTYPE html>
<html>
   <head>
      <title>Bootstrap Example</title>
      <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet">
      <script src = "/scripts/jquery.min.js"></script>
      <script src = "/bootstrap/js/bootstrap.min.js"></script>
   </head>
   <body>
      <nav class = "navbar navbar-default" role = "navigation">
         <div class = "navbar-header">
            <a class = "navbar-brand" href = "#">Demo</a>
         </div>
         <div>
            <p class = "navbar-text">Copyright © 2018</p>
         </div>
      </nav>
   </body>
</html>

更新日期:12-Jun-2020

206 次瀏覽

開啟你的事業

獲得完成課程的認證

開始
廣告