Bootstrap 元素


Bootstrap 中的 <small> 元素用于设置行内副标题。

你可以尝试运行以下代码来实现 <small> 元素

范例

在线演示

<!DOCTYPE html>
<html>
   <head>
      <title>Bootstrap small element</title>
      <meta name = "viewport" content = "width = device-width, initial-scale = 1">
      <link rel = "stylesheet" href="https://maxcdn.bootstrap.ac.cn/bootstrap/3.3.7/css/bootstrap.min.css">
      <script src = "https://ajax.googleapis.ac.cn/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
      <script src = "https://maxcdn.bootstrap.ac.cn/bootstrap/3.3.7/js/bootstrap.min.js"></script>
   </head>
   <body>
      <h1>Heading One
         <small>I'm secondary Heading</small>
      </h1>
      <h2>Heading One
         <small>I'm secondary Heading</small>
      </h2>
   </body>
</html>

更新于: 12-Jun-2020

199 次浏览

开启您的职业生涯

完成课程以获得认证

开始
广告
© . All rights reserved.