How to set Helvetica font?

不想你离开。 提交于 2019-12-12 07:44:52

问题


How to set Helvetica font?

I add css:

body
{
    font-family: Helvetica, Sans-Serif;
    color: #444444;
    font-size: 9pt;
    background-color: #FAFAFA;
}

but in Mozilla I see MS shell dlg font.

Why is this happens and how will repair it?

Update:

I set Arial but in Mozilla I see MS shell dlg again.


回答1:


If you want all browsers to use Arial whenever Helvetica is not available, you can always specify Arial as a second choice font.

body
{
    font-family: 'Helvetica', 'Arial', sans-serif;
    color: #444444;
    font-size: 9pt;
    background-color: #FAFAFA;
}

because font-family can use any number or arguments, and it will use the first one in the list that is available.



来源:https://stackoverflow.com/questions/17616531/how-to-set-helvetica-font

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!