css字体引入
@font-face {
font-family: 'ledFont';
src: url('./font/ds-digi-webfont.eot'); /* IE9 Compat Modes */
src: url('./font/ds-digi-webfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('./font/ds-digi-webfont.woff') format('woff'), /* Modern Browsers */
url('./font/ds-digi-webfont.ttf') format('truetype'), /* Safari, Android, iOS */
url('./font/ds-digi-webfont.svg') format('svg'); /* Legacy iOS */
}
使用字体
#time {
font-family: ledFont;
color: white;
font-size: 27px;
text-align: center;
}