Materialize CSS使用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.jquery.com/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 Example<
/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>
<
h5>
Heading 5<
/h5>
<
h6>
Heading 6<
/h6>
<
/div>
<
h3>
Block Quotes<
/h3>
<
div class = "card-panel">
<
blockquote>
Blockquotes are mainly used to give emphasis to a quote or citation.
You can also use these for some extra text hierarchy and emphasis.
<
/blockquote>
<
/div>
<
h3>
Responsive free-flow text<
/h3>
<
div class = "card-panel">
<
p class = "flow-text">
HTML is an acronym which stands for Hyper Text Markup Language.
A markup language is a programming language that is used make text more interactive and dynamic.
It can turn a text into images, tables, links etc.
<
/p>
<
/div>
<
/body>
<
/html>
立即测试
【Materialise CSS字体】输出
文章图片
推荐阅读
- Materialise CSS徽章
- Materialise CSS阴影
- delphi xe5 android 开发数据访问手机端 解决乱码的办法
- Delphi XE5 图解为Android应用制作签名
- Android实例-Delphi开发蓝牙官方实例解析(XE10+小米2+小米5)
- Android面试收集录1--Activity+Service
- Android N分屏模式Activity生命周期的变化
- 使用adb命令启查看已安装的Android应用的versionCodeversionName
- 以芯片直读方式得到的Android全盘镜像解析——DOS分区