Bootstrap navbar-default 類


Bootstrap 中的 navbar-default 類用於建立導航欄。

你可以嘗試執行以下程式碼來實現 navbar-default 類

示例

即時預覽

<!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 style = "background: #F5CBA7;">
      <nav class = "navbar navbar-default" role = "navigation">
         <div class = "navbar-header">
            <a class = "navbar-brand" href = "#">Cars</a>
         </div>
         <div>
            <ul class = "nav navbar-nav">
               <li class = "active"><a href = "#">BMW</a></li>
               <li><a href = "#">Audi</a></li>
            </ul>
         </div>
      </nav>
   </body>
</html>

更新時間:2020年6月12日

已瀏覽 873 次

開啟你的 職業生涯

完成課程後獲得認證

開始學習
廣告
© . All rights reserved.