jQuery字体图标的三种方法

BootStrap框架原生图标

  1. 在导入BootStrap包的同时,导入bootstrap-3.3.7-dist/css/bootstrap.css层叠样式;
  2.  

  3. <button type="button" class="btn btn-success glyphicon glyphicon-remove">编辑</button>

Font Awesome图标的使用

  1. 在http://www.fontawesome.com.cn/网站上下载
  2. ctrl + f可在网页上查询

     

  3. 将图中的文件导入所在Html文件中:
    1. <link rel="stylesheet" href="css/font-awesome.css">
    2. <link rel="stylesheet" href="../bootstrap-3.3.7-dist/css/bootstrap.css">
posted @ 2018-09-14 20:57  pythonZhou  阅读(1698)  评论(0)    收藏  举报