font-face字体文件引入方式

<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <style>
        @font-face {
            font-family: "MFLangSong_Noncommercial";
            /*src:
            url('font/MFLangSong_Noncommercial-Regular.ttf') format('truetype');
            font-weight: normal;*/
            src: url('font/charlemagnestd-regular.eot');
            src: url('font/charlemagnestd-regular.eot?#iehack') format('embedded-opentype'),
            url('font/charlemagnestd-regular.woff') format('woff'),
            url('font/original-charlemagnestd-regular.otf'),
            url('font/charlemagnestd-regular.ttf') format('truetype');
        }
        div{font-size:30px;color:#333;font-family: "MFLangSong_Noncommercial";}
    </style>
</head>
<body>
<div>决赛成绩比拼</div>
</body>
</html>

 

posted @ 2016-08-08 16:28  dongxiaolei  阅读(1156)  评论(0编辑  收藏  举报