牵头段落(Lead Paragraph)
描述 (Description)
与普通文本相比,它是相当大的文本块,可用于广告或其他描述性文本。
例子 (Example)
以下示例演示了在Foundation中使用lead paragraph 。
<!doctype html>
<html>
<head>
<title>Lead Paragraph</title>
<link rel = "stylesheet" href = "https://cdnjs.cloudflare.com/ajax/libs/foundation/6.0.1/css/foundation.css">
</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 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_lead_paragraph.html文件。
在浏览器中打开此HTML文件,输出显示如下。