web 标准通用字体


web浏览器中通用的英文字体有哪些?
Arial
Arial Black
Comic Sans MS
Courier New Georgia
Impact
Times New Roman
Trebuchet MS
Verdana

这个工具很好用:TypeTester,可以帮助你查看不同的英文字体的显示效果;很直观的比较出效果;

web浏览器中通用的中文字体有哪些?
宋体,
黑体,
楷体_gb2312,
隶书,
幼圆,
仿宋;

或许可以做个中文的类似typetester的网站,不是吗?

另外注意下em的用法:

第一种情况:

body { font-size: 100%;/*默认状态 */}
h1 { font-size: 2em; /* 16px × 2em = 32px */ }
p { font-size: 1.2em; /* 16px × 1.2em = 19.2px */ }

第二种情况:

body {font-size: 62.5%; /* 16px × 62.5% = 10px */ }
h1 { font-size: 2em; /* 10px × 2em = 20px */ }
p { font-size: 1.2em; /* 10px × 1.2em = 12px */ }

因为web默认字体大小为16px,上面定义的h1, p中的em虽然相同,但是实际出来的字体大小是不同的。

收藏与分享

Related posts:

  1. 为什么会通货膨胀?
  2. css reset
  3. 街拍
  1. No comments yet.
(will not be published)

  1. No trackbacks yet.