目录

Subheader

描述 (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>

输出 (Output)

让我们执行以下步骤,看看上面给出的代码是如何工作的 -

  • 保存上面给出的html代码typography_subheader.html文件。

  • 在浏览器中打开此HTML文件,输出显示如下。

新页面打开
↑回到顶部↑
WIKI教程 @2018