如何设置Helvetica字体?

问题描述:

如何设置Helvetica字体?

How to set Helvetica font?

我添加css:

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

但在mozzila我看到 MS shell dlg 字体。

but in mozzila I see MS shell dlg font.

为什么会发生这种情况,如何修复?

Why is this happens and how will repair it?

更新:

我设置Arial,但在mozzila我再次看到 MS shell dlg img src =https://i.stack.imgur.com/i0KTp.pngalt =enter image description here>

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

如果您希望所有浏览器在Helvetica不可用时使用Arial,您可以随时指定Arial作为第二选择字体。

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;
}

因为 font-family 可以使用任何数字或参数,它将使用列表中的第一个可用的。

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