zoukankan      html  css  js  c++  java
  • iconfont 使用

    1、获取在线地址【进入iconfont网站图标管理】

    使用方法:

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        @font-face {
          font-family: 'iconfont';
          src: url('http://at.alicdn.com/t/font_1448938185_4262772.eot'); /* IE9*/
          src: url('http://at.alicdn.com/t/font_1448938185_4262772.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
          url('http://at.alicdn.com/t/font_1448938185_4262772.woff') format('woff'), /* chrome、firefox */
          url('http://at.alicdn.com/t/font_1448938185_4262772.ttf') format('truetype'), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/
          url('http://at.alicdn.com/t/font_1448938185_4262772.svg#iconfont') format('svg'); /* iOS 4.1- */
        }
        .iconfont{font-family:"iconfont";font-size:40px;font-style:normal;}
        .icon-arrowdowncircle:before{content: 'e601';}
    </style>
    </head>
    <body>
        <span class="iconfont">&#xe601</span>
        <span class="iconfont icon-arrowdowncircle"></span>
    </body>
    </html>

    如下图所示:

  • 相关阅读:
    javaee_正则表达式基础和常用表达式
    hello2源代码分析
    servlet_filterj简介
    hello1的web.xml解析
    Annotation
    注入(Injection)
    容器(Container)
    Building Tool(Maven/Gradle)
    JavaWeb的历史与发展趋势
    Build Tools
  • 原文地址:https://www.cnblogs.com/baixc/p/5009472.html
Copyright © 2011-2022 走看看