当前位置:网站首页>如何给网页添加icon图标?
如何给网页添加icon图标?
2022-08-11 04:09:00 【东非不开森】
做一些小页面或者项目的时候,我们会发现每个网站都有自己的小图标,下面我就告诉你怎么弄这个,超简单的!
网站添加icon小图标
网页图标favicon.ico小简介
favicon.ico一般用于作为缩略的网站标志,它显示在浏览器的地址栏、浏览器标签上或者在收藏夹上,是展示网站个性的缩略logo标志,也可以说是网站头像,目前主要的浏览器都支持favicon.ico图标,加上这个,会显得更美观更专业哦!
1.添加网站已有icon图标
- 以CSDN网站为例:

- 想要这样的网站图标:
- 搜索框输入:
https://www.csdn.net/favicon.ico

- 就会出现CSDN小图标

- 右键将图片以icon格式下载后,拖到自己的前端项目中。

- 在html页面引入
<link rel="shortcut icon" href="favicon.ico" />

然后刷新一下页面就OK啦
2.自定义icon图标
自定义图标就是自己想喜欢啥样的图标就可以自己去做!nice!
- 使用一个制作图标的网站: bitbug

其实~也没啥技术含量哈哈,跟这上面步骤来就OK啦

- 选择文件——>选好自己想要的尺寸——>附加码——生成icon图标
就会得到下面以ico后缀的文件啦~

打开后:
- 然后就是引入了,其实和上面的引入方式是一样的!
- 将下载好的文件,拖到自己的前端项目中。

2. 在html页面引入
<link rel="shortcut icon" href="favicon.ico" />

学会了嘛!(/ω\)
边栏推荐
- 洛谷P7441 Erinnerung
- js uses the string as the js execution code
- LeetCode Brush Questions Day 11 String Series "58 Last Word Length"
- 机器学习怎么学?机器学习流程
- Redis:解决分布式高并发修改同一个Key的问题
- (转)JVM中那些区域会发生OOM?
- redis按照正则批量删除key
- The custom of the C language types -- -- -- -- -- - structure
- What is Machine Reinforcement Learning?What is the principle?
- Rotary array problem: how to realize the array "overall reverse, internal orderly"?"Three-step conversion method" wonderful array
猜你喜欢

leetcode刷题第13天二叉树系列之《98 BST及其验证》

Provincial level of Echart maps, as well as all prefecture-level download and use

机器学习中什么是集成学习?

Clang Code Model: Error: The clangbackend executable “X:/clangbackend.exe“ could not be started

2022-08-10 The sixth group Hiding spring study notes

机器学习可以应用在哪些场景?机器学习有什么用?

The development of the massage chair control panel makes the massage chair simple and intelligent

使用jackson解析json数据详讲

How to learn machine learning?machine learning process

Graphical LeetCode - 640. Solving Equations (Difficulty: Moderate)
随机推荐
Uni - app - access to Chinese characters, pinyin initials (according to the Chinese get pinyin initials)
LeetCode814算题第15天二叉树系列值《814 二叉树剪枝》
The FTP error code list
【FPGA】名词缩写
【FPGA】设计思路——I2C协议
LeetCode刷题第11天字符串系列之《 58最后一个单词长度》
这些云自动化测试工具值得拥有
Description of ESB product development steps under cloud platform
Is there any way for kingbaseES to not read the system view under sys_catalog by default?
"125 Palindrome Verification" of the 10th day string series of LeetCode brushing questions
What is machine learning?Explain machine learning concepts in detail
LeetCode刷题第12天二叉树系列之《104 二叉树的最大深度》
DNS separation resolution and intelligent resolution
C语言 recv()函数、recvfrom()函数、recvmsg()函数
MYSQLg advanced ------ return table
洛谷P1763 埃及分数
Where can machine learning be applied?What is machine learning useful for?
机器学习中什么是集成学习?
我的 archinstall 使用手册
[Likou] 22. Bracket generation