Subheader

优质
小牛编辑
131浏览
2023-12-01

描述 (Description)

Subheader使用.subheader类减轻标题的颜色。 它可以添加到任何标题元素。

例子 (Example)

以下示例演示了在Foundation中使用subheader

<!doctype html>
<html>
   <head>
      <title>Subheader</title>
      <link rel = "stylesheet" href = "https://cdnjs.cloudflare.com/ajax/libs/foundation/6.0.1/css/foundation.css">
   </head>
   <body>
      <h1 class = "subheader">This is heading one</h1>
      <h2 class = "subheader">This is heading two</h2>
      <h3 class = "subheader">This is heading three</h3>
      <h4 class = "subheader">This is heading four</h4>
      <h5 class = "subheader">This is heading five</h5>
      <h6 class = "subheader">This is heading six</h6>
      <script src = "https://cdnjs.cloudflare.com/ajax/libs/foundation/6.0.1/js/vendor/jquery.min.js"></script>
      <script src = "https://cdnjs.cloudflare.com/ajax/libs/foundation/6.0.1/js/foundation.min.js"></script>
      <script>
         $(document).ready(function() {
            $(document).foundation();
         })
      </script>
   </body>
</html>