Effect Chart:
First in the site to create a directory, such as fonts, store these special fonts, Lcdd.ttf and Lcdd.eot, these two files are actually just a font, but the extension is not the same. is to solve the problem that IE and non IE browser can not display correctly.
CSS Style:
Copy Code code 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 Code code as follows:
<p class= "Insusfont" >
<%= DateTime.Now.ToString ()%>
</p>
In fact, you may only find the. ttf font, do not have the. eot font file, what to do? At this point you can try the format conversion using the following site:
This demo font is from the Internet and you can also download the TTF and. EOT two format fonts from the links below. Fonts are copyrighted, please do not use commercial applications.
LED Font Download Led_jb51.rar