The method is as follows:
@font-face {
font-family:sketch rockwell; /* Here is the font name that explains the call */
src:URL(' sketch rockwell . TTF '); /* Here is the font file path */
}
. my_CSS3_class {
font-family:sketch rockwell; /* Set the font value of the parameter here, where "my_CSS3_class" calls the font value "sketch rockwell" */
Font size: 3.2em/* Here is the font size */
}
To avoid confusion, the following is an uncommented source file:
@font-face {
font-family:sketch rockwell;
src:URL(' sketch rockwell . TTF ');
}
. my_CSS3_class {
font-family:sketch rockwell;
Font size: 3.2em
}