:
First, create a directory on the site, such as Fonts, to store these special Fonts, lcdd. ttf and lcdd. eot. These two files are actually just a font, but they have different extensions. Is to solve the problem that IE and non-IE browsers cannot be normally displayed.
CSS style:
Copy codeThe Code is as follows:
<Style type = "text/css">
/* IE browser */
@ Font-face {
Font-family: LcdD;
Src: url (Fonts/lcdd. eot) format ("truetype ");
}
/* Non-IE browser */
@ Font-face {
Font-family: LcdD;
Src: url (Fonts/lcdd. ttf) format ("truetype ");
}
P. insusfont {
Font-family: LcdD;
Font-size: 30px;
}
</Style>
Html:
Copy codeThe Code is as follows:
<P class = "insusfont">
<% = DateTime. Now. ToString () %>
</P>
In actual situations, you may only find the. ttf font and do not have the. eot font file. What should you do? At this point, you can try to use the following site for format conversion:
In this example, the fonts are from the internet. You can also download the fonts in The. ttf and. eot formats from the following link. The font is copyrighted. Do not use it for commercial purposes.
Download led_jb51.rar in led font