码迷,mamicode.com
首页 > Web开发 > 详细

网页小图标设置

时间:2016-10-23 02:11:23      阅读:187      评论:0      收藏:0      [点我收藏+]

标签:display   shortcut   str   收藏   网页   border   images   height   round   

一、什么是网页小图标

技术分享

技术分享

技术分享

技术分享

技术分享

 

二、如何设置网页小图标

网页的显示图标可以通过link来设置:

<!-- rel="shortcut icon"即标签栏行显示的图标。 -->
<link rel="shortcut icon" href="http://images.cnblogs.com/cnblogs_com/cc11001100/898804/o_c.png" type="image/x-icon">
<!-- rel="bookmark"即收藏夹栏里显示的图标。 -->
<link rel="bookmark" href="http://images.cnblogs.com/cnblogs_com/cc11001100/898804/o_c.png">

 

三、总结回顾

之前只知道link可以用来导入css文件(链接样式),如此<link rel="stylesheet" href="..." />。

 

思考:

link应该就是用来引用资源的,然后使用rel来设置一下引用的什么资源,让浏览器去解析。

 

待补项:通过web容器设置网页小图标。

网页小图标设置

标签:display   shortcut   str   收藏   网页   border   images   height   round   

原文地址:http://www.cnblogs.com/cc11001100/p/5988796.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!