首页 > 其他 > 详细

字体图标的案例

时间:2016-10-07 01:30:44      阅读:119      评论:0      收藏:0      [点我收藏+]
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>CSS3 Web字体</title>
    <style>
        body {
            text-align: center;
        }

        /*声明字体*/
        @font-face {
            /*第三方字体名称*/
            font-family: ‘testfont01‘;
            /*引入第三方字体的文件*/
            src: url(‘../fonts/LiDeBiao-Xing3/LiDeBiao-Xing3.eot‘) format(‘embedded-opentype‘),
            url(‘../fonts/LiDeBiao-Xing3/LiDeBiao-Xing3.woff‘) format(‘woff‘),
            url(‘../fonts/LiDeBiao-Xing3/LiDeBiao-Xing3.ttf‘) format(‘truetype‘),
            url(‘../fonts/LiDeBiao-Xing3/LiDeBiao-Xing3.svg‘) format(‘svg‘);
            font-weight: normal;
            font-style: normal;
        }

        p.demo {
            font-family: testfont01;
            font-size: 24px;
        }
    </style>
</head>
<body>
    <p class="demo">
        英雄不问出处,流氓不看岁数这个字行不行
    </p>
    <p class="demo">非英雄,非流氓</p>
</body>
</html>

 

字体图标的案例

原文:http://www.cnblogs.com/lsy0403/p/5935159.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!