mozilla
Os seus resultados da pesquisa

    font-family

    Resumo

    font-family allows for a prioritized list of font family names and/or generic family names to be specified for the selected element. Unlike most other CSS properties, values are separated by a comma to indicate that they are alternatives.

    • Valor inicial: depende do agente usuário
    • Apĺica-se a: todos os elementos
    • Herdado: sim
    • Porcentagens: N/A
    • Mídia: visual
    • Valor computado: como especificado

    Sintaxe

    font-family: [[family-name|generic-family]
        [,family-name|generic-family]*] | inherit
    

    Valores

    family-name 
    The name of a font family. For example, "Times" and "Helvetica" are font families. Font family names containing whitespace should be quoted.
    generic-family 
    The following generic families are defined: serif, sans-serif, cursive, fantasy, monospace. Generic family names are keywords and should not be quoted.

    Exemplos

    View Live Examples

    body { font-family: "Gill Sans Extrabold", Helvetica, sans-serif }
    
    .receipt { font-family: Courier, "Lucida Console", monospace }
    

    Notas

    You should always specify a generic family name as the last value in the font-family property.

    The font-family property specifies a list of fonts, from highest priority to lowest. Font selection does not simply stop at the first font named in the list that is on the user's system. Rather, font selection is done one character at a time, so that if an available font does not have a glyph that can display a character needed, the later available fonts are tried.

    When a font is only available in some styles, variants, or sizes, those properties may also influence which font family is chosen.

    Especificações

    == Compatibilidade com navegadores == TBD (This might best be done as a single centralized compatibility chart.)

    Veja também

    font font-family, font-size, font-size-adjust, font-style, font-variant, font-weight, line-height

    Categorias

    Interwiki Language Links

    Etiquetas do documento e colaboradores

    Etiquetas: 
    Contributors to this page: Verruckt, teoli
    Última atualização por: teoli,