Arial Black - Websafe字体?

PI.*_*PI. 7 fonts

Arial Black网络安全吗?

我已经读过了,但当我把它放在我的字体声明中时,我正被赋予Times New Roman.

有谁知道为什么?

小智 15

根据Code Style字体调查(实际上你可以得到最好的估计)Arial Black通常安装在大约97%的Windows和Mac计算机以及68%的Linux计算机上.所以,使用它是相当安全的,但你必须在你的字体堆栈中提供它的替代品.就像是:

.my-style { font-family: 'Arial Black', 'Arial Bold', Gadget, sans-serif;
Run Code Online (Sandbox Code Playgroud)

如果您希望它出现,即使它没有真正安装在您的(或任何用户)系统上,那么您必须在CSS中使用@ font-face指令嵌入字体文件.

这是代码风格调查:http://www.codestyle.org/css/font-family/sampler-CombinedResultsFull.shtml


Sta*_*arx 7

我不知道你是如何声明你的字体的.通常,它不应该像你说的那样发生.

确保以这种方式声明字体

font-family: 'Arial Black', Gadget, sans-serif;
Run Code Online (Sandbox Code Playgroud)

以下是Web安全字体的其他常见模式,供您选择.

font-family: Arial, Helvetica, sans-serif;
font-family: 'Arial Black', Gadget, sans-serif;
font-family: 'Bookman Old Style', serif;
font-family: 'Comic Sans MS', cursive;
font-family: Courier, monospace;
font-family: 'Courier New', Courier, monospace;
font-family: Garamond, serif;
font-family: Georgia, serif;
font-family: Impact, Charcoal, sans-serif;
font-family: 'Lucida Console', Monaco, monospace;
font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif;
font-family: 'MS Sans Serif', Geneva, sans-serif;
font-family: 'MS Serif', 'New York', sans-serif;
font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
font-family: Symbol, sans-serif;
font-family: Tahoma, Geneva, sans-serif;
font-family: 'Times New Roman', Times, serif;
font-family: 'Trebuchet MS', Helvetica, sans-serif;
font-family: Verdana, Geneva, sans-serif;
font-family: Webdings, sans-serif;
font-family: Wingdings, 'Zapf Dingbats', sans-serif; 
Run Code Online (Sandbox Code Playgroud)

资源