HTML标签中的Link标签的使用方法和场景

1.引入外部的CSS文件

  <link rel="stylesheet" href="www.myhaimi.com/Content/base/src/css/common.css" type=‘text/css’ />

2.给网站头部加个小图标   

  <link href="C:\Users\michael.chen\Desktop\favicon.ico" rel="shortcut icon" type="image/x-icon"/>

备注:这里的favicon必须是16*16或者32*32的,必须是8位色或者24位色的,格式必须是png或者ico或者gif。
16*16/32*32 且 8位或24位色 且 png/ico/gif。

3.其余的用法可以查看W3Cschool:https://www.w3cschool.cn/html5/html5-link.html

 

posted @ 2018-08-22 16:33  射线  阅读(3173)  评论(0编辑  收藏  举报