Problems with css3 referencing fonts

@font-face {
    font-family: "HansHandItalic";
    src: url("fonts/hanshand-webfont.eot");
    src: url("fonts/hanshand-webfont.eot?-sharpiefix") format("embedded-opentype"),
         url("fonts/hanshand-webfont.woff") format("woff"),
         url("fonts/hanshand-webfont.ttf") format("truetype"),
         url("fonts/hanshand-webfont.svg-sharpwebfont34M5alKg") format("svg");
    font-weight: normal;
    font-style: normal;
}

this is a more complete reference to the external font. There are two things Xiaobai doesn"t understand.

1, why src: url ("fonts/hanshand-webfont.eot"); should be written separately, not in the path below?

2. What does format mean?

Mar.05,2021

found document


url ('fonts/hanshand-webfont.eot'); it's ie9,
url (' fonts/hanshand-webfont.eot?-sharpiefix') format ('embedded-opentype'); it's ie6-8, and
is written separately for good distinction, but you can also write it together.
format refers to the font format you refer to. The main types are truetype,opentype,truetype-aat,embedded-opentype,avg, etc.

Menu