HTML/Font:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
创建页面,内容为“== 引言 == == 衬线字体 == Times New Roman (<span style="font-family:Georgia,serif;">Times New Roman</span>) == 示例 == {| class="wikitable" |+ Serif |- | Geo…”
 
Kangkk​(留言 | 贡献)
第1行: 第1行:
== 引言 ==
== 引言 ==
字体是字形的集合,且每个字形是一个描述了一个字母亦或符号的矢量图。字体文件的大小由两个因素决定:
* 字形矢量路径的复杂程度;
* 字体所包含的字形数量。
暂时没有一种字体可以同时兼容新旧浏览器。
== 字体格式 ==
=== [https://www.w3.org/TR/WOFF2/ WOFF2] ===
{| class="wikitable"
|-
| IE 浏览器 || ||
|-
| 其他浏览器 || ||
|}
=== WOFF ===
{| class="wikitable"
|-
| IE 浏览器 || 旧的浏览器不支持 ||
|-
| 其他浏览器 || 旧的浏览器不支持 ||
|}
=== EOT ===
{| class="wikitable"
|-
| IE 浏览器 || 支持 || IE (版本<9)使用 EOT 变体
|-
| 其他浏览器 || 不支持 ||
|}
=== TTF ===
{| class="wikitable"
|-
| IE 浏览器 || 部分支持 ||
|-
| 其他浏览器 || ||
|-
| 安卓 || 支持 || 安卓(版本<4.4)使用 TTF 变体
|}
== 字体压缩 ==
== 衬线字体 ==
== 衬线字体 ==
Times New Roman (<span style="font-family:Georgia,serif;">Times New Roman</span>)
Times New Roman (<span style="font-family:Georgia,serif;">Times New Roman</span>)

2020年6月3日 (三) 07:59的版本

引言

字体是字形的集合,且每个字形是一个描述了一个字母亦或符号的矢量图。字体文件的大小由两个因素决定:

  • 字形矢量路径的复杂程度;
  • 字体所包含的字形数量。

暂时没有一种字体可以同时兼容新旧浏览器。

字体格式

IE 浏览器
其他浏览器

WOFF

IE 浏览器 旧的浏览器不支持
其他浏览器 旧的浏览器不支持

EOT

IE 浏览器 支持 IE (版本<9)使用 EOT 变体
其他浏览器 不支持

TTF

IE 浏览器 部分支持
其他浏览器
安卓 支持 安卓(版本<4.4)使用 TTF 变体

字体压缩

衬线字体

Times New Roman (Times New Roman)

示例

Serif
Georgia,serif

This is a heading
This is a paragraph

'Palatino Linotype','Book Antiqua',Palatino,serif

This is a heading
This is a paragraph

'Times New Roman',Times,serif

This is a heading
This is a paragraph

sans-serif
Arial,Helvetica,sans-serif

This is a heading
This is a paragraph

Arial Black,Gadget,sans-serif

This is a heading
This is a paragraph

'Comic Sans MS',cursive,sans-serif

This is a heading
This is a paragraph

Impact,Charcoal,sans-serif

This is a heading
This is a paragraph

'Lucida Sans Unicode','Lucida Grande',sans-serif

This is a heading
This is a paragraph

Tahoma,Geneva,sans-serif

This is a heading
This is a paragraph

'Trebuchet MS',Helvetica,sans-serif

This is a heading
This is a paragraph

Verdana,Geneva,sans-serif

This is a heading
This is a paragraph

Monospace
'Courier New',Courier,monospace

This is a heading
This is a paragraph

'Lucida Console',Monaco,monospace

This is a heading
This is a paragraph