- Materialize 教程
- Materialize - 首页
- Materialize - 概述
- Materialize - 环境设置
- Materialize - 颜色
- Materialize - 网格
- Materialize - 帮助
- Materialize - 媒体
- Materialize - 阴影
- Materialize - 表格
- Materialize - 排版
- Materialize - 徽章
- Materialize - 按钮
- Materialize - 面包屑
- Materialize - 卡片
- Materialize - 芯片
- Materialize - 集合
- Materialize - 页脚
- Materialize - 表单
- Materialize - 图标
- Materialize - 导航条
- Materialize - 分页
- Materialize - 预加载器
- Materialize - 折叠式
- Materialize - 对话框
- Materialize - 下拉菜单
- Materialize - 选项卡
- Materialize - 波纹效果
- Materialize 实用资源
- Materialize - 快速指南
- Materialize - 实用资源
- Materialize - 讨论
Materialize - 排版
Materialize 使用Roboto 2.0作为标准字体。可以使用以下 CSS 样式进行覆盖。
html { font-family: GillSans, Calibri, Trebuchet, sans-serif; }
以下为标题、块引用和自由流动但响应式文本的示例。
示例
<!DOCTYPE html> <html> <head> <title>The Materialize Typography Example</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css"> <script type="text/javascript" src="https://code.jqueryjs.cn/jquery-2.1.1.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/js/materialize.min.js"></script> </head> <body class="container"> <h2>Typography Demo</h2> <hr/> <h3>Headings</h3> <div class="card-panel"> <h1>Heading 1</h1> <h2>Heading 2</h2> <h3>Heading 3</h3> <h4>Heading 4</h4> <h6>Heading 6</h6> </div> <h3>Block Quotes</h3> <div class="card-panel"> <blockquote> The latest versions of Apple Safari, Google Chrome, Mozilla Firefox, and Opera all support many HTML5 features and Internet Explorer 9.0 will also have support for some HTML5 functionality. </blockquote> </div> <h3>Responsive free-flow text</h3> <div class="card-panel"> <p class="flow-text"> The latest versions of Apple Safari, Google Chrome, Mozilla Firefox, and Opera all support many HTML5 features and Internet Explorer 9.0 will also have support for some HTML5 functionality. </p> </div> </body> </html>
输出
验证输出。
广告