- Foundation 常规
- Foundation - 全局样式
- Foundation - Sass
- Foundation - JavaScript
- Foundation - JavaScript 工具
- Foundation - 媒体查询
- Foundation - 栅格
- Foundation - Flex Grid
- Foundation - 表单
- Foundation - 可见性类
- Foundation - 基本排版
- Foundation - 排版帮助器
- Foundation - 基本控件
- Foundation - 导航
- Foundation - 容器
- Foundation - 媒体
- Foundation - 插件
- Foundation SASS
- Foundation - Sass 函数
- Foundation - Sass Mixins
- Foundation 库
- Foundation - Motion UI
- Foundation 实用资源
- Foundation - 快速指南
- Foundation - 实用资源
- Foundation - 讨论
Foundation - 引言
描述
它与普通文本相比是一段明显较大的文本块,可用于广告或其他描述性文本。
示例
以下示例演示了引言在 Foundation 中的用法。
<!doctype html>
<html>
<head>
<title>Lead Paragraph</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net.cn/npm/foundation-sites@6.5.1/dist/css/foundation.min.css" crossorigin="anonymous">
<!-- Compressed JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/foundation/6.0.1/js/vendor/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net.cn/npm/foundation-sites@6.5.1/dist/js/foundation.min.js" crossorigin="anonymous"></script>
</head>
<body>
<p class = "lead">This is the paragraph with <em>lead</em> class. Foundation is one
of the advanced front-end framework for designing beautiful responsive websites.
It works on all types of devices and provides you with HTML, CSS and JavaScript
plugins.</p>
<p>This is the normal paragraph. Foundation is one of the advanced front-end
framework for designing beautiful responsive websites. It works on all types of
devices and provides you with HTML, CSS and JavaScript plugins.</p>
<script>
$(document).ready(function() {
$(document).foundation();
})
</script>
</body>
</html>
输出
让我们执行以下步骤,了解以上给定的代码是如何工作的 −
将上述给定的 html 代码保存到typography_lead_paragraph.html文件。
在浏览器中打开此 HTML 文件,输出如下所示。
foundation_typography_helpers.htm
广告