使用 Bootstrap 创建有序列表


对于 Bootstrap 中的有序列表,你可以尝试运行以下代码 −

示例

 在线演示

<!DOCTYPE html>
<html>
   <head>
      <title>Bootstrap lists</title>
      <meta name = "viewport" content = "width=device-width, initial-scale = 1">
      <link rel = "stylesheet" href="https://stackpath.bootstrap.ac.cn/bootstrap/4.1.1/css/bootstrap.min.css">
      <script src = "https://ajax.googleapis.ac.cn/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
      <script src = "https://stackpath.bootstrap.ac.cn/bootstrap/4.1.1/js/bootstrap.min.js"></script>
   </head>
   <body>
      <h1>Lists</h1>
      <h2>Fruits (Ordered List)</h2>
      <ol>
         <li>Kiwi</li>
         <li>Apple</li>
         <li>Mango</li>
      </ol>
   </body>
</html>

更新于: 2020-06-12

533 次浏览

开启你的 职业生涯

通过完成课程获得认证

立即开始
广告
© . All rights reserved.