精华内容
下载资源
问答
  • icon图标
    千次阅读
    2021-09-23 17:11:04

    {id:1,name:‘el-icon-platform-eleme’},
    {id:2,name:‘el-icon-eleme’},
    {id:3,name:‘el-icon-delete-solid’},
    {id:4,name:‘el-icon-delete’},
    {id:5,name:‘el-icon-s-tools’},
    {id:6,name:‘el-icon-setting’},
    {id:7,name:‘el-icon-user-solid’},
    {id:8,name:‘el-icon-user’},
    {id:9,name:‘el-icon-phone’},
    {id:10,name:‘el-icon-phone-outline’},
    {id:11,name:‘el-icon-more’},
    {id:12,name:‘el-icon-more-outline’},
    {id:13,name:‘el-icon-star-on’},
    {id:14,name:‘el-icon-star-off’},
    {id:15,name:‘el-icon-s-goods’},
    {id:16,name:‘el-icon-goods’},
    {id:17,name:‘el-icon-warning’},
    {id:18,name:‘el-icon-warning-outline’},
    {id:19,name:‘el-icon-question’},
    {id:20,name:‘el-icon-info’},
    {id:21,name:‘el-icon-remove’},
    {id:22,name:‘el-icon-circle-plus’},
    {id:23,name:‘el-icon-success’},
    {id:24,name:‘el-icon-error’},
    {id:25,name:‘el-icon-zoom-in’},
    {id:26,name:‘el-icon-zoom-out’},
    {id:27,name:‘el-icon-remove-outline’},
    {id:28,name:‘el-icon-circle-plus-outline’},
    {id:29,name:‘el-icon-circle-check’},
    {id:30,name:‘el-icon-circle-close’},
    {id:31,name:‘el-icon-s-help’},
    {id:32,name:‘el-icon-help’},
    {id:33,name:‘el-icon-minus’},
    {id:34,name:‘el-icon-plus’},
    {id:35,name:‘el-icon-check’},
    {id:36,name:‘el-icon-close’},
    {id:37,name:‘el-icon-picture’},
    {id:38,name:‘el-icon-picture-outline’},
    {id:39,name:‘el-icon-picture-outline-round’},
    {id:40,name:‘el-icon-upload’},
    {id:41,name:‘el-icon-upload2’},
    {id:42,name:‘el-icon-download’},
    {id:43,name:‘el-icon-camera-solid’},
    {id:44,name:‘el-icon-camera’},
    {id:45,name:‘el-icon-video-camera-solid’},
    {id:46,name:‘el-icon-video-camera’},
    {id:47,name:‘el-icon-message-solid’},
    {id:48,name:‘el-icon-bell’},
    {id:49,name:‘el-icon-s-cooperation’},
    {id:50,name:‘el-icon-s-order’},
    {id:51,name:‘el-icon-s-platform’},
    {id:52,name:‘el-icon-s-fold’},
    {id:53,name:‘el-icon-s-unfold’},
    {id:54,name:‘el-icon-s-operation’},
    {id:55,name:‘el-icon-s-promotion’},
    {id:56,name:‘el-icon-s-home’},
    {id:57,name:‘el-icon-s-release’},
    {id:58,name:‘el-icon-s-ticket’},
    {id:59,name:‘el-icon-s-management’},
    {id:60,name:‘el-icon-s-open’},
    {id:61,name:‘el-icon-s-shop’},
    {id:62,name:‘el-icon-s-marketing’},
    {id:63,name:‘el-icon-s-flag’},
    {id:64,name:‘el-icon-s-comment’},
    {id:65,name:‘el-icon-s-finance’},
    {id:66,name:‘el-icon-s-claim’},
    {id:67,name:‘el-icon-s-custom’},
    {id:68,name:‘el-icon-s-opportunity’},
    {id:69,name:‘el-icon-s-data’},
    {id:70,name:‘el-icon-s-check’},
    {id:71,name:‘el-icon-s-grid’},
    {id:72,name:‘el-icon-menu’},
    {id:73,name:‘el-icon-share’},
    {id:74,name:‘el-icon-d-caret’},
    {id:75,name:‘el-icon-caret-left’},
    {id:76,name:‘el-icon-caret-right’},
    {id:77,name:‘el-icon-caret-bottom’},
    {id:78,name:‘el-icon-caret-top’},
    {id:79,name:‘el-icon-bottom-left’},
    {id:80,name:‘el-icon-bottom-right’},
    {id:81,name:‘el-icon-back’},
    {id:82,name:‘el-icon-right’},
    {id:83,name:‘el-icon-bottom’},
    {id:84,name:‘el-icon-top’},
    {id:85,name:‘el-icon-top-left’},
    {id:86,name:‘el-icon-top-right’},
    {id:87,name:‘el-icon-arrow-left’},
    {id:88,name:‘el-icon-arrow-right’},
    {id:89,name:‘el-icon-arrow-down’},
    {id:90,name:‘el-icon-arrow-up’},
    {id:91,name:‘el-icon-d-arrow-left’},
    {id:92,name:‘el-icon-d-arrow-right’},
    {id:93,name:‘el-icon-video-pause’},
    {id:94,name:‘el-icon-video-play’},
    {id:95,name:‘el-icon-refresh’},
    {id:96,name:‘el-icon-refresh-right’},
    {id:97,name:‘el-icon-refresh-left’},
    {id:98,name:‘el-icon-finished’},
    {id:99,name:‘el-icon-sort’},
    {id:100,name:‘el-icon-sort-up’},
    {id:101,name:‘el-icon-sort-down’},
    {id:102,name:‘el-icon-rank’},
    {id:103,name:‘el-icon-loading’},
    {id:104,name:‘el-icon-view’},
    {id:105,name:‘el-icon-c-scale-to-original’},
    {id:106,name:‘el-icon-date’},
    {id:107,name:‘el-icon-edit’},
    {id:108,name:‘el-icon-edit-outline’},
    {id:109,name:‘el-icon-folder’},
    {id:110,name:‘el-icon-folder-opened’},
    {id:111,name:‘el-icon-folder-add’},
    {id:112,name:‘el-icon-folder-remove’},
    {id:113,name:‘el-icon-folder-delete’},
    {id:114,name:‘el-icon-folder-checked’},
    {id:115,name:‘el-icon-tickets’},
    {id:116,name:‘el-icon-document-remove’},
    {id:117,name:‘el-icon-document-delete’},
    {id:118,name:‘el-icon-document-copy’},
    {id:119,name:‘el-icon-document-checked’},
    {id:120,name:‘el-icon-document’},
    {id:121,name:‘el-icon-document-add’},
    {id:122,name:‘el-icon-printer’},
    {id:123,name:‘el-icon-paperclip’},
    {id:124,name:‘el-icon-takeaway-box’},
    {id:125,name:‘el-icon-search’},
    {id:126,name:‘el-icon-monitor’},
    {id:127,name:‘el-icon-attract’},
    {id:128,name:‘el-icon-mobile’},
    {id:129,name:‘el-icon-scissors’},
    {id:130,name:‘el-icon-umbrella’},
    {id:131,name:‘el-icon-headset’},
    {id:132,name:‘el-icon-brush’},
    {id:133,name:‘el-icon-mouse’},
    {id:134,name:‘el-icon-coordinate’},
    {id:135,name:‘el-icon-magic-stick’},
    {id:136,name:‘el-icon-reading’},
    {id:137,name:‘el-icon-data-line’},
    {id:138,name:‘el-icon-data-board’},
    {id:139,name:‘el-icon-pie-chart’},
    {id:140,name:‘el-icon-data-analysis’},
    {id:141,name:‘el-icon-collection-tag’},
    {id:142,name:‘el-icon-film’},
    {id:143,name:‘el-icon-suitcase’},
    {id:144,name:‘el-icon-suitcase-1’},
    {id:145,name:‘el-icon-receiving’},
    {id:146,name:‘el-icon-collection’},
    {id:147,name:‘el-icon-files’},
    {id:148,name:‘el-icon-notebook-1’},
    {id:149,name:‘el-icon-notebook-2’},
    {id:150,name:‘el-icon-toilet-paper’},
    {id:151,name:‘el-icon-office-building’},
    {id:152,name:‘el-icon-school’},
    {id:153,name:‘el-icon-table-lamp’},
    {id:154,name:‘el-icon-house’},
    {id:155,name:‘el-icon-no-smoking’},
    {id:156,name:‘el-icon-smoking’},
    {id:157,name:‘el-icon-shopping-cart-full’},
    {id:158,name:‘el-icon-shopping-cart-1’},
    {id:159,name:‘el-icon-shopping-cart-2’},
    {id:160,name:‘el-icon-shopping-bag-1’},
    {id:161,name:‘el-icon-shopping-bag-2’},
    {id:162,name:‘el-icon-sold-out’},
    {id:163,name:‘el-icon-sell’},
    {id:164,name:‘el-icon-present’},
    {id:165,name:‘el-icon-box’},
    {id:166,name:‘el-icon-bank-card’},
    {id:167,name:‘el-icon-money’},
    {id:168,name:‘el-icon-coin’},
    {id:169,name:‘el-icon-wallet’},
    {id:170,name:‘el-icon-discount’},
    {id:171,name:‘el-icon-price-tag’},
    {id:172,name:‘el-icon-news’},
    {id:173,name:‘el-icon-guide’},
    {id:174,name:‘el-icon-male’},
    {id:175,name:‘el-icon-female’},
    {id:176,name:‘el-icon-thumb’},
    {id:177,name:‘el-icon-cpu’},
    {id:178,name:‘el-icon-link’},
    {id:179,name:‘el-icon-connection’},
    {id:180,name:‘el-icon-open’},
    {id:181,name:‘el-icon-turn-off’},
    {id:182,name:‘el-icon-set-up’},
    {id:183,name:‘el-icon-chat-round’},
    {id:184,name:‘el-icon-chat-line-round’},
    {id:185,name:‘el-icon-chat-square’},
    {id:186,name:‘el-icon-chat-dot-round’},
    {id:187,name:‘el-icon-chat-dot-square’},
    {id:188,name:‘el-icon-chat-line-square’},
    {id:189,name:‘el-icon-message’},
    {id:190,name:‘el-icon-postcard’},
    {id:191,name:‘el-icon-position’},
    {id:192,name:‘el-icon-turn-off-microphone’},
    {id:193,name:‘el-icon-microphone’},
    {id:194,name:‘el-icon-close-notification’},
    {id:195,name:‘el-icon-bangzhu’},
    {id:196,name:‘el-icon-time’},
    {id:197,name:‘el-icon-odometer’},
    {id:198,name:‘el-icon-crop’},
    {id:199,name:‘el-icon-aim’},
    {id:200,name:‘el-icon-switch-button’},
    {id:201,name:‘el-icon-full-screen’},
    {id:202,name:‘el-icon-copy-document’},
    {id:203,name:‘el-icon-mic’},
    {id:204,name:‘el-icon-stopwatch’},
    {id:205,name:‘el-icon-medal-1’},
    {id:206,name:‘el-icon-medal’},
    {id:207,name:‘el-icon-trophy’},
    {id:208,name:‘el-icon-trophy-1’},
    {id:209,name:‘el-icon-first-aid-kit’},
    {id:210,name:‘el-icon-discover’},
    {id:211,name:‘el-icon-place’},
    {id:212,name:‘el-icon-location’},
    {id:213,name:‘el-icon-location-outline’},
    {id:214,name:‘el-icon-location-information’},
    {id:215,name:‘el-icon-add-location’},
    {id:216,name:‘el-icon-delete-location’},
    {id:217,name:‘el-icon-map-location’},
    {id:218,name:‘el-icon-alarm-clock’},
    {id:219,name:‘el-icon-timer’},
    {id:220,name:‘el-icon-watch-1’},
    {id:221,name:‘el-icon-watch’},
    {id:222,name:‘el-icon-lock’},
    {id:223,name:‘el-icon-unlock’},
    {id:224,name:‘el-icon-key’},
    {id:225,name:‘el-icon-service’},
    {id:226,name:‘el-icon-mobile-phone’},
    {id:227,name:‘el-icon-bicycle’},
    {id:228,name:‘el-icon-truck’},
    {id:229,name:‘el-icon-ship’},
    {id:230,name:‘el-icon-basketball’},
    {id:231,name:‘el-icon-football’},
    {id:232,name:‘el-icon-soccer’},
    {id:233,name:‘el-icon-baseball’},
    {id:234,name:‘el-icon-wind-power’},
    {id:235,name:‘el-icon-light-rain’},
    {id:236,name:‘el-icon-lightning’},
    {id:237,name:‘el-icon-heavy-rain’},
    {id:238,name:‘el-icon-sunrise’},
    {id:239,name:‘el-icon-sunrise-1’},
    {id:240,name:‘el-icon-sunset’},
    {id:241,name:‘el-icon-sunny’},
    {id:242,name:‘el-icon-cloudy’},
    {id:243,name:‘el-icon-partly-cloudy’},
    {id:244,name:‘el-icon-cloudy-and-sunny’},
    {id:245,name:‘el-icon-moon’},
    {id:246,name:‘el-icon-moon-night’},
    {id:247,name:‘el-icon-dish’},
    {id:248,name:‘el-icon-dish-1’},
    {id:249,name:‘el-icon-food’},
    {id:250,name:‘el-icon-chicken’},
    {id:251,name:‘el-icon-fork-spoon’},
    {id:252,name:‘el-icon-knife-fork’},
    {id:253,name:‘el-icon-burger’},
    {id:254,name:‘el-icon-tableware’},
    {id:255,name:‘el-icon-sugar’},
    {id:256,name:‘el-icon-dessert’},
    {id:257,name:‘el-icon-ice-cream’},
    {id:258,name:‘el-icon-hot-water’},
    {id:259,name:‘el-icon-water-cup’},
    {id:260,name:‘el-icon-coffee-cup’},
    {id:261,name:‘el-icon-cold-drink’},
    {id:262,name:‘el-icon-goblet’},
    {id:263,name:‘el-icon-goblet-full’},
    {id:264,name:‘el-icon-goblet-square’},
    {id:265,name:‘el-icon-goblet-square-full’},
    {id:266,name:‘el-icon-refrigerator’},
    {id:267,name:‘el-icon-grape’},
    {id:268,name:‘el-icon-watermelon’},
    {id:269,name:‘el-icon-cherry’},
    {id:270,name:‘el-icon-apple’},
    {id:271,name:‘el-icon-pear’},
    {id:272,name:‘el-icon-orange’},
    {id:273,name:‘el-icon-coffee’},
    {id:274,name:‘el-icon-ice-tea’},
    {id:275,name:‘el-icon-ice-drink’},
    {id:276,name:‘el-icon-milk-tea’},
    {id:277,name:‘el-icon-potato-strips’},
    {id:278,name:‘el-icon-lollipop’},
    {id:279,name:‘el-icon-ice-cream-square’},
    {id:280,name:‘el-icon-ice-cream-round’},

    更多相关内容
  • 本源码展示了4种不同方法获取Windows系统的各种ICON图标,包括文件夹、不同类型文件、程序文件的ICON、带特定图标的文件夹(如:收藏夹)等等的图标都能提取。[源码附带详细注释]
  • icon图标合集.rar

    2020-10-24 06:53:08
    7组,icon格式图标;少量其他格式;非windows和开发工具自带的一些图标;有电脑,标志,文件图标,等;
  • MFC常用ICON图标5000个

    2018-10-31 08:33:43
    包含常用的MFC编程所需的小图标,按照不同的类型进行分类
  • 适用于easyui,extjs等的 200 个 icon图标大全(2000个icon)。 icon图标大全(2000个icon),适用于easyui,extjs等,可适用各种信息系统开发 easyui,icon
  • 32x32的icon图标

    2017-12-01 16:27:31
    32x32的icon图标,用于MFC按钮美化,包含灯泡\方向好多等等icon图标
  • 含有两种类型的图标,可供winform界面设计使用,也可做移动,web开发的使用
  • C# 绝版icon图标 大全

    2017-08-25 15:59:25
    C# 绝版icon图标 大全
  • 电脑大全icon图标

    2019-03-07 23:13:02
    Windows使用的各种icon图标,有需要的赶紧。超全,超全,超全
  • 1000个icon图标打包

    2015-12-20 16:27:57
    1000个icon图标打包
  • icon图标大全(2000个icon),适用于easyui,extjs等,可适用各种信息系统开发
  • WIndows 下所有ICon图标集合,包含48*48 32*32 16*16
  • Ext JS 1713个icon图标

    千次下载 热门讨论 2014-07-18 23:53:21
    由于最近在研究Extjs4.1.1,没想到Extjs没有自带的iconCls所使用的图标样式css,就是用那个写那个的,纠结了半天,网上也找了好久,还是自己写了个批量处理程序,集合了1713个png小图标,都是Extjs原生态的,直接...
  • element-ui自带的图标库不够全,还是需要需要引入第三方icon。下面小编给大家带来了Vue Element使用icon图标教程,感兴趣的朋友一起看看吧
  • 丰富的icon图标

    2017-04-12 11:47:14
    icon图标
  • Free Icon Tool 是一款短小精悍且非常实用的应用图标提取器软件,能帮助大家非常方便的提取dll、ocx、cpl、cil、exe中的ico图标文件,所以也叫icon图标提取器,Free Icon Tool可以把提取出来的应用程序图标以及图片...
  • icon图标字体

    2018-04-25 13:55:26
    icon图标字体icon图标字体icon图标字体icon图标字体icon图标字体icon图标字体icon图标字体icon图标字体icon图标字体icon图标字体icon图标字体icon图标字体icon图标字体icon图标字体icon图标字体icon图标字体icon图标...
  • 内含50张常用图标,多种格式,多种大小。内含50张常用图标,多种格式,多种大小。
  • ICON图标改颜色

    2012-11-12 21:32:11
    ICON图标改颜色 非常不错 右键操作即可
  • 微信小程序icon图标使用详解

    千次阅读 2021-12-03 14:48:04
    icon 在微信小程序中用来显示图标

    也许你迷茫,但是我想说,在你迷茫的同时,保持本心,过好今天就好。

    icon 在微信小程序中用来显示图标。


    1 icon 图标的基本使用

    在这里插入图片描述

    <view class="container">
      <view class="icon-box">
        <icon class="icon-box-img" type="success" size="44"></icon>
        <view class="icon-box-ctn">
          <view class="icon-box-title">成功</view>
          <view class="icon-box-desc">用于表示操作顺利完成</view>
        </view>
      </view>
    

    其实核心代码就是

    <icon  type="success" size="44"></icon>
    
    • type 是图标显示的类型 可取值 success, success_no_circle, info, warn, waiting, cancel, download, search, clear
    • size 是图标显示的大小 默认单位是 px
    • color 是图标的颜色

    2 type 取值概述

    2.1 info

    info 用于表示信息提示;也常用于缺乏条件的操作拦截,提示用户所需信息

    <icon  type="info" size="44"></icon>
    

    在这里插入图片描述

    2.2 warn

    默认,强烈警告,用于表示由于用户原因造成的负向结果;也用于表示操作后将引起不可挽回的严重后果的情况

    <icon  type="warn" size="44"></icon>
    

    在这里插入图片描述
    我们也可以设置一个颜色,普通警告,用于表示操作后将引起一定后果的情况;也用于表示由于系统原因而造成的负向结果

    <icon  type="warn" size="44" color="#C9C9C9"></icon>
    

    在这里插入图片描述

    2.3 info_circle

    用于在表单中表示有信息提示

    <icon type="info_circle" size="44"></icon>
    

    在这里插入图片描述

    2.4 waiting

    用于表示等待,告知用户结果需等待

     <icon  type="waiting" size="44"></icon>
    

    在这里插入图片描述

    2.5 success_no_circle

    用于多选控件中,表示已选择该项目

    <icon type="success_no_circle" size="44"></icon>
    

    在这里插入图片描述

    2.6 circle

    用于多选控件中,表示该项目可被选择,但还未选择

    <icon type="circle" size="44"></icon>
    

    在这里插入图片描述

    2.7 circle

    用于单选控件中,表示已选择该项目

     <icon  type="success" size="44"></icon>
    

    在这里插入图片描述

    2.8 download

    用于表示可下载

     <icon type="download" size="44"></icon>
    

    在这里插入图片描述

    2.9 cancel

    停止或关闭

    <icontype="cancel" size="44"></icon>
    

    在这里插入图片描述

    2.10 search

    用于搜索

    <icon  type="search" size="44"></icon>
    

    在这里插入图片描述


    完毕

    展开全文
  • Icon图标 & 自定义Icon图标 博主很久之前就想使用Element-UI,总是因为学习后端的技术鸽了很久(博主目前是偏后端),这里博主通过Vue来整合Element-UI(不是Vue项目整合Element-UI,Vue项目整合Element-UI不久...

    Element-UI - Vue项目整合Element-UI & Icon图标 & 自定义Icon图标

    博主很久之前就想使用Element-UI,总是因为需要学习后端技术鸽了很久(博主目前是偏后端),这里博主通过Vue项目来整合Element-UI。

    引入Element-UI

    npm安装

    Vue项目整合Element-UI会用到,这里博主介绍一下。

    npm i element-ui -S
    
    • i:是install的简写。
    • -S:即--save(保存),包会被注册到package.jsondependencies里面。
    E:\workspace\WebStorm\blog\project>
    E:\workspace\WebStorm\blog\project>npm i element-ui -S
    ...
    + element-ui@2.14.1
    added 6 packages from 6 contributors in 7.474s
    

    在这里插入图片描述
    在Vue项目入口文件main.js中添加:

    import ElementUI from 'element-ui'
    import 'element-ui/lib/theme-chalk/index.css'
    
    Vue.use(ElementUI)
    

    在这里插入图片描述
    这样就可以在Vue项目中使用Element-UI了。

    修改App.vue

    <template>
      <div id="app">
        <img src="./assets/logo.png">
        <router-view/>
        <i class="el-icon-platform-eleme"></i>
        <i class="el-icon-delete-solid"></i>
        <i class="el-icon-loading"></i>
        <p class="el-icon-folder-add"></p>
        <el-button type="primary" icon="el-icon-search">搜索</el-button>
      </div>
    </template>
    
    <script>
    export default {
      name: 'App'
    }
    </script>
    
    <style>
    #app {
      font-family: 'Avenir', Helvetica, Arial, sans-serif;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      text-align: center;
      color: #2c3e50;
      margin-top: 60px;
    }
    </style>
    

    很明显Element-UI使用成功了。
    在这里插入图片描述
    CDN

    <!-- 引入样式 -->
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <!-- 引入组件库 -->
    <script src="https://unpkg.com/element-ui/lib/index.js"></script>
    

    建议使用CDN引入Element-UI时锁定版本,以免将来Element-UI升级时受到非兼容性更新的影响。

    如版本2.14.1

    <!-- 引入样式 -->
    <link rel="stylesheet" href="https://unpkg.com/element-ui@2.14.1/lib/theme-chalk/index.css">
    <!-- 引入组件库 -->
    <script src="https://unpkg.com/element-ui@2.14.1/lib/index.js"></script>
    

    引入这些文件后,就可以使用Element-UI了。

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>images</title>
        <!-- 引入样式 -->
        <link rel="stylesheet" href="https://unpkg.com/element-ui@2.14.1/lib/theme-chalk/index.css">
        <!-- 引入组件库 -->
        <script src="../js/vue.js"></script>
        <script src="https://unpkg.com/element-ui@2.14.1/lib/index.js"></script>
    </head>
    <body>
      <div id="app">
          <i class="el-icon-platform-eleme"></i>
          <i class="el-icon-delete-solid"></i>
          <i class="el-icon-loading"></i>
          <p class="el-icon-folder-add"></p>
          <el-button type="primary" icon="el-icon-search">搜索</el-button>
      </div>
    </body>
    </html>
    <script>
        var vue = new Vue({
            el: '#app'
        })
    </script>
    

    效果和上面是一样的,Element-UI使用成功了。
    在这里插入图片描述
    Javascript文件引入顺序如下,因为Element-UI是基于Vue2的,所以要先引入Vue。

        <script src="../js/vue.js"></script>
        <script src="https://unpkg.com/element-ui@2.14.1/lib/index.js"></script>
    

    Icon图标

    Element-UI提供了一套常用的图标集合。直接通过设置类名为el-icon-iconName来使用即可,上面的代码中也有涉及。

          <i class="el-icon-platform-eleme"></i>
          <i class="el-icon-delete-solid"></i>
          <i class="el-icon-loading"></i>
          <p class="el-icon-folder-add"></p>
    

    查看有哪些图标:

    自定义Icon图标

    Element-UI提供的图标还是有限的,所以需要自定义Icon图标,通过下面代码就可以自定义Icon图标,很简单吧(知道CSS即可)。

    <style>
        .el-icon-dog{
            background: url(../img/dog.png) center no-repeat;  /*使用自己的图片来替换*/
            background-size: contain;
        }
        .el-icon-dog:before{
            content: "dog";                                    /*before属性中的content文本是用来占位的,必须有*/
            font-size: 50px;                                   /*可以设置字体大小来确定图标大小*/
            visibility: hidden;                                /*使用visibility: hidden;来隐藏文字*/
        }
    </style>
    

    代码:

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>images</title>
        <!-- 引入样式 -->
        <link rel="stylesheet" href="https://unpkg.com/element-ui@2.14.1/lib/theme-chalk/index.css">
        <!-- 引入组件库 -->
        <script src="../js/vue.js"></script>
        <script src="https://unpkg.com/element-ui@2.14.1/lib/index.js"></script>
    </head>
    <body>
      <div id="app">
          <i class="el-icon-platform-eleme"></i>
          <i class="el-icon-delete-solid"></i>
          <i class="el-icon-loading"></i>
          <p class="el-icon-folder-add"></p>
          <p class="el-icon-dog"></p>
          <el-button type="primary" icon="el-icon-search">搜索</el-button>
      </div>
    </body>
    </html>
    <style>
        .el-icon-dog{
            background: url(../img/dog.png) center no-repeat;  /*使用自己的图片来替换*/
            background-size: contain;
        }
        .el-icon-dog:before{
            content: "dog";                                    /*before属性中的content文本是用来占位的,必须有*/
            font-size: 50px;                                   /*可以设置字体大小来确定图标大小*/
            visibility: hidden;                                /*使用visibility: hidden;来隐藏文字*/
        }
    </style>
    <script>
        var vue = new Vue({
            el: '#app'
        })
    </script>
    

    效果如下图所示:
    在这里插入图片描述
    很明显效果符合预期。
    在这里插入图片描述

    Vue项目整合Element-UI、Icon图标以及自定义Icon图标就介绍到这里。

    写博客是博主记录自己的学习过程,如果有错误,请指正,谢谢!

    展开全文
  • HTML中引用icon图标

    千次阅读 2022-05-03 01:00:19
    ② 在购物车中将icon图标添加至项目 ③ 点击生成新代码 生成代码(示例): //引入iconfont的声明 @font-face { font-family: 'iconfont'; /* Project id 3373080 */ src: url('//at.alicdn....

    简单介绍在HTML如何中引用icon图标


    1.登录iconfont官网 生成连接

    ① 搜索想引用的图标,找到后加入购物车图标加入购物车

    ② 在购物车中将icon图标添加至项目
    打开购物车
    ③ 点击生成新代码
    生成新的代码

    生成代码(示例):

    //引入iconfont的声明
    @font-face {
      font-family: 'iconfont';  /* Project id 3373080 */
      src: url('//at.alicdn.com/t/font_3373080_hrq4d4vg3gp.woff2?t=1651511648580') format('woff2'),
           url('//at.alicdn.com/t/font_3373080_hrq4d4vg3gp.woff?t=1651511648580') format('woff'),
           url('//at.alicdn.com/t/font_3373080_hrq4d4vg3gp.ttf?t=1651511648580') format('truetype');
    }
    
    //被引入icon图标的代码
    &#xe8f2;
    

    2.在CSS文件中声明引用iconfont,并对iconfont配置样式

    CSS文件中:
    代码示例
    HTML文件中:
    在这里插入图片描述

    代码如下(示例):

    /* 引用iconfont声明 */
    @font-face {
      font-family: 'iconfont';  /* Project id 3373080 */
      src: url('//at.alicdn.com/t/font_3373080_mefuod36dv.woff2?t=1651511952500') format('woff2'),
           url('//at.alicdn.com/t/font_3373080_mefuod36dv.woff?t=1651511952500') format('woff'),
           url('//at.alicdn.com/t/font_3373080_mefuod36dv.ttf?t=1651511952500') format('truetype');
    }
    
    /* 定义使用iconfont的样式 */
    .iconfont{
        font-family:"iconfont" !important;
        font-size:16px;font-style:normal;
        -webkit-font-smoothing: antialiased;
        -webkit-text-stroke-width: 0.2px;
        -moz-osx-font-smoothing: grayscale;
        }
    
    //html 文件中 body里使用标签引用图标 
    <a href="#" class="iconfont">&#xe8f2;</a><!-- 引入箭头icon点击箭头跳转页面  href="跳转后的地址" -->
    

    总结

    以上就是今天记录的小notes,本文仅仅简单介绍了如何在HTML中引用icon图标,总结起来关键步骤就是:1.声明引用iconfont 2.定义iconfont的CSS样式 3.在HTML的body中使用标签引用图标。

    展开全文
  • icon图标修改

    2018-06-16 15:04:12
    免费绿色icon图标修改、编辑神器,能直接更改桌面图标、应用程序图标、HTML网页icon
  • vb icon图标大全

    热门讨论 2011-11-01 13:11:09
    上百种图标供你选择 是vb编程很好的资源
  • C# 界面 icon 图标

    热门讨论 2011-08-17 14:58:08
    C# icon 图标 C# icon 图标 界面 C# icon 图标 C# icon 图标 界面
  • icon图标资源库

    千次阅读 2021-05-16 15:19:28
    Icons8.com—拥有海量的图标、插画、照片,使用方便; iconfinder.com——好看好用的图标设计库; flaticon.com——提供三百多万海量免费图标的素材库; iconfont.cn——阿里巴巴体验团队打造的矢量图标库 ...
  • 参考一下地址 http://172.16.41.11:8080/tools?activeName=5
  • ICON图标设计

    千次阅读 2020-08-29 23:53:24
    ICON不仅是图标这么简单,它承载了文字的含义,将文字图形化,而让人使用最少的时间来理解这个按钮的含义,ICON是审美与功能完美融合的元素。 一、ICON设计原则 1,意义明确 这个很容易理解,当你要做一套icon时,它...
  • vue项目中插入icon图标

    千次阅读 2021-12-28 17:31:03
    在写vue+element-ui项目时,element-ui中的图标不合我们的意时,我们可以上iconfont扒拉扒拉
  • Vue组件Icon图标处理方案

    千次阅读 2021-11-28 22:11:07
    记录一次对于想使用element-plus之外的图标,如何封装成一个组件,是本次记录的目标,希望在工作时能帮助自己处理图标问题。

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 215,085
精华内容 86,034
关键字:

icon图标

友情链接: cdma.zip