wordpress
发布时间:2022-05-06 发布网站:大佬教程 code.js-code.com
大佬教程收集整理的这篇文章主要介绍了Font Awesome – 完美的图标字体 – 专门为 Bootstrap 而创造的图标字体,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
在使用wordpress建站的过程中,我们经常需要使用一些图标字体,下面91wordpress的站长向大家介绍一款完美的图标字体Font Awesome,这是一款专门为 Bootstrap 而创造的图标字体。一个字体文件包含了249 个图标。可以协助您完整的表达web页面上每个动作的含义。而且使用CSS能非常容易的改变这些图标的颜色、大小以及阴影等属性。每个图标都是矢量图,可以在所有大小的屏幕上完美呈现,无限放大。Font Awesome支持IE7及以上浏览器,可以完美的呈现在ReTina屏幕上。是完全从头设计的整套图标,完全和Bootstrap 2.2.2版本兼容。下面我们讲解一下如何在网站建设中使用Font Awesome图标字体。@H_489_1@
1. 拷贝 Font Awesome 字体目录到您的项目之中。
2. 拷贝 font-awesome.min.css 文件到您的项目之中。
3. 打开您项目中的 font-awesome.min.css 文件并编辑字体路径指向正确的位置。字体路径是相对于你的 CSS 目录的。
4. 在html文档中的
部分,引入 font-awesome.min.css
文件,
方法如下:
Crayon-5c891d1ed908c571385803" class="
Crayon-
Syntax Crayon-theme-classic
Crayon-font-monaco
Crayon-os-pc print-yes notranslate" data-set
Tings=" minimize scroll-mou
SEOver" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
Crayon-toolbar" data-set
Tings=" mou
SEOver overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
Crayon-title">Crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
Crayon-button
Crayon-nums-button"
title="Toggle Line
numbers">
Crayon-button-icon">
Crayon-button
Crayon-plain-button"
title="Toggle Plain Code">
Crayon-button-icon">
Crayon-button
Crayon-wrap-button"
title="Toggle Line Wrap">
Crayon-button-icon">
Crayon-button
Crayon-expand-button"
title="Expand Code">
Crayon-button-icon">
Crayon-button
Crayon-copy-button"
title="Copy">
Crayon-button-icon">
Crayon-button
Crayon-popup-button"
title="Open Code In New Window">
Crayon-button-icon">
Crayon-language">CSSCrayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
Crayon-main" style="">
Crayon-table">Crayon-row">Crayon-nums " data-setTings="show">Crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;"> Crayon-num" data-line=" Crayon-5c891d1ed908c571385803-1">1 | Crayon-code">Crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size :4; -o-tab-size :4; -webkit-tab-size :4; tab-size :4;"> Crayon-line" id=" Crayon-5c891d1ed908c571385803-1"> Crayon-ta">Crayon-e ">relCrayon-i ">="stylesheet"Crayon-h"> Crayon-e ">hrefCrayon-i ">="../css/bootstrap.min.css">Crayon-line Crayon- Striped-line" id=" Crayon-5c891d1ed908c571385803-2"> Crayon-ta">Crayon-e ">relCrayon-i ">="stylesheet"Crayon-h"> Crayon-e ">hrefCrayon-i ">="../css/font-awesome.min.css"> |
5. 在浏览器中打开您的页面,检查是否正确使用了 Font Awesome 图标字体!@H_489_1@
大佬总结
以上是大佬教程为你收集整理的Font Awesome – 完美的图标字体 – 专门为 Bootstrap 而创造的图标字体全部内容,希望文章能够帮你解决Font Awesome – 完美的图标字体 – 专门为 Bootstrap 而创造的图标字体所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。