code:
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
Notice:
- It's not an iconfont, nor a picture
- The following type="image/x-icon" can be omitted
- For compatibility, the favicon.ico icon needs to be placed in the root directory
convert ico icon
We can convert the pictures we made into ico icons so that we can put them on the site
step:
- First use ps or fireworks to cut the picture, try to make the picture transparent png format
- Then convert the picture to ico icon online, recommended website: http://www.bitbug.net/