字体 颜色 行距与网页易读性

一些必备的常识告诉我们增加网页的易读性的基础。包含对比和字体、行距选择的基本常识。文章于2007年44月13日 发布在http://www.12px.net

对字体和颜色的正确利用可以使你的网站更具备可读性。

留意对比色
黑字白底,或者是白字黑底,对于有视觉障碍的人或者是显示设备不是太好的人来说是最佳的颜色组合方案。
灰字亮色底的对比效果非常差:
Grey text on a white background (#EEEEEE)
Grey text on a white background (#CCCCCC)
Grey text on a white background (#AAAAAA)
Grey text on a white background (#888888)
Grey text on a white background (#666666)
Grey text on a white background (#444444)
Grey text on a white background (#222222)
Grey text on a white background (#111111)

Grey text on a dark background can also give a very poor contrast:
灰字深色底的对比效果同样也很差:

Grey text on a black background (#222222)
Grey text on a black background (#444444)
Grey text on a black background (#666666)
Grey text on a black background (#888888)
Grey text on a black background (#AAAAAA)
Grey text on a black background (#CCCCCC)
Grey text on a black background (#DDDDDD)
Grey text on a black background (#EEEEEE)

Some combinations - like black and red, black and blue, yellow and green - always strain the eye:
一些颜色组合 - 如:黑红组合、黑蓝组合、黄绿组合 - 通常会让人产生视觉疲劳

Black text on a red background
 
Black text on a blue background
 
Yellow text on a green background

And some combinations are not so bad:
然而,有些颜色组合就不错:

Black text on a grey background
 
Black text on a light blue
 
Black text on antique white
 
White text on dark blue


注意字母间隔


文本的字母间隔对于弱视人群来说会造成特殊的困难。

Text with extra letter spacing is easy to read
上面是最便于人们阅读的字母间隔。

Text with reduced letter spacing is difficult to read
上面这类字母间隔太小,不易阅读。



注意行距

Text with good line spacing
is easy to read
上面是最便于人们阅读的行距。

Text with reduced line spacing
is difficult to read
上面这类行距太小,不易阅读

Avoid the Fancy Fonts
拒绝花里胡哨的字体

This font is easy to read
上面这类字体便于阅读。

This font is not
上面这类字体不易阅读。


少用斜体字

Normal fonts are easy to read. Normal font is easy to read. Normal fonts are easy to read. Normal font is easy to read. Normal fonts are easy to read.
上面这类便于阅读。

Italic fonts are not so easy to read. Italic font is not so easy to read. Italic fonts are not so easy to read. Italic font is not so easy to read.
显然使用斜体的文本不易于阅读。

相关文章