标签:css font
如何引入外部字体呢?@font-face {
font-family: ‘HansHandItalic‘;
src: url(‘fonts/hanshand-webfont.eot‘);
src: url(‘fonts/hanshand-webfont.eot?#iefix‘) format(‘embedded-opentype‘),
url(‘fonts/hanshand-webfont.woff‘) format(‘woff‘),
url(‘fonts/hanshand-webfont.ttf‘) format(‘truetype‘),
url(‘fonts/hanshand-webfont.svg#webfont34M5alKg‘) format(‘svg‘);
font-weight: normal;
font-style: normal;
}
3.使用字体
body{
font-family: ‘YaHei Consolas Hybrid‘;
font-size: 16px;
}
标签:css font
原文地址:http://blog.51cto.com/9886022/2093725