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 次浏览

开启你的事业

获得完成课程的认证

开始
广告
© . All rights reserved.