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>
廣告