ttf字体转eot

http://www.fontsquirrel.com/fontface/generator 



css标签 自定义字体文件使用

@font-face


demo

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>fonts - test</title>
    <style type="text/css">
        @font-face {
            font-family: 'nesobritecd-regular';
            src: url('font/nesobritecd-regular.eot');
            src: url('font/nesobritecd-regular.eot?#iefix') format('embedded-opentype'),
            url('font/nesobritecd-regular.woff') format('woff'),
            url('font/nesobritecd-regular.ttf') format('truetype'),
            url('font/nesobritecd-regular.svg#NeuesBauenDemo') format('svg');
        }
        .test,.test2{font-size:5em; color:#C00;}
        .test,.test2{font-family:'nesobritecd-regular';}
    </style>
</head>
<body>

    <div class="test">abcdefghijklmnopqrst</div>
    <div class="test2">ABCDEFGHIJKLMNOPQRST</div>

</body>
</html>


你可能感兴趣的:(ttf字体转eot)