Link 标签 rel=Stylesheet的实际作用
来源:互联网 发布:创盈门窗优化软件 编辑:程序博客网 时间:2024/05/21 07:11
Link标签有两个作用 一是定义文档与外部资源的关系、二是链接样式表,下面有个示例,大家可以参考下
关于Link标签,相信接触的人都知道相关用法,但是我经常忘记rel的实际作用,这次专门查找了下,记录,以作备用。
Link标签有两个作用:1. 定义文档与外部资源的关系;2. 是链接样式表。
<head>
<link rel="stylesheet" type="text/css" href="theme.css" />
</head>
type为链接文件的格式;
rel 该属性规定当前文档与被链接文档之间的关系。但是,只有 rel 属性的 "stylesheet" 值得到了所有浏览器的支持。其他值只得到了部分地支持。
值 描述 alternate文档的替代版本(比如打印页、翻译或镜像)。stylesheet文档的外部样式表。start集合中的第一个文档。next集合中的下一个文档。prev集合中的上一个文档。contents文档的目录。index文档的索引。glossary在文档中使用的词汇的术语表(解释)。copyright包含版权信息的文档。chapter文档的章。section文档的节。subsection文档的小节。appendix文档的附录。help帮助文档。bookmark相关文档。
link标签是用于当前文档引用外部文档的,其次,这个标签的rel属性用于设置对象和链接目的间的关系,说白了就是指明你链进来的对象是个什么东西的,具体的值及其所表示的关系如下:
Alternate:Substitute version of the file that contains the link.
Appendix:Page that is an appendix for the set of pages.
Bookmark:Bookmark.
Chapter:Page that is a chapter for a set of pages.
Contents:Table of contents document.
Copyright:Copyright notice for the current page.
Glossary:Glossary for the current page.
Help:Help document.
Index:Index document for the current page.
Next:Next document in a sequence.
Offline:href that contains a path to the CDF file to be used for an offline favorite.
Prev:Previous document in a sequence.
Section:Page that is a section for a set of pages.
Shortcut:Icon href that contains a path to an icon file to be used for the favorite or link.
Start:First document of a set.
Stylesheet:Style sheet.
Subsection:Page that is a subsection for a set of pages.
Link标签有两个作用:1. 定义文档与外部资源的关系;2. 是链接样式表。
下面是链接外部样式表
<head>
<link rel="stylesheet" type="text/css" href="theme.css" />
</head>
href 为 URL地址;
type为链接文件的格式;
rel 该属性规定当前文档与被链接文档之间的关系。但是,只有 rel 属性的 "stylesheet" 值得到了所有浏览器的支持。其他值只得到了部分地支持。
link标签是用于当前文档引用外部文档的,其次,这个标签的rel属性用于设置对象和链接目的间的关系,说白了就是指明你链进来的对象是个什么东西的,具体的值及其所表示的关系如下:
Alternate:Substitute version of the file that contains the link.
Appendix:Page that is an appendix for the set of pages.
Bookmark:Bookmark.
Chapter:Page that is a chapter for a set of pages.
Contents:Table of contents document.
Copyright:Copyright notice for the current page.
Glossary:Glossary for the current page.
Help:Help document.
Index:Index document for the current page.
Next:Next document in a sequence.
Offline:href that contains a path to the CDF file to be used for an offline favorite.
Prev:Previous document in a sequence.
Section:Page that is a section for a set of pages.
Shortcut:Icon href that contains a path to an icon file to be used for the favorite or link.
Start:First document of a set.
Stylesheet:Style sheet.
Subsection:Page that is a subsection for a set of pages.
<head>
<link rel="stylesheet" type="text/css" href="theme.css" />
</head>
0 0
- Link 标签 rel=Stylesheet的实际作用
- Link 标签 rel=Stylesheet的实际作用
- Link 标签 rel=Stylesheet的实际作用
- Link 标签 rel=Stylesheet的实际作用
- link 标签中“rel=stylesheet”的作用
- link 标签中“rel=stylesheet”的作用
- Link 标签 rel="Stylesheet"?
- html link rel='stylesheet' 什么意思?
- link rel=”canonical”标签的用法
- 利用link标签rel="alternate stylesheet"属性实现变化页面导入样式表
- 利用link标签rel="alternate stylesheet"属性实现界面动态换肤
- 利用link标签rel="alternate stylesheet"属性实现界面动态换肤
- 利用link的rel=“alternate stylesheet”实现类似夜间模式的这类换肤功能
- <link rel="stylesheet" href="css/style.css">解说
- HTML中a标签的rel属性使用 link标签的rel="search"用法
- rel="stylesheet"
- rel=“stylesheet”
- rel="stylesheet" 是什么意思?
- DataGridView添加行号
- SpringMVC拦截器实现登录控制
- Python进阶(四十三)-Python模块学习:glob 文件路径查找
- 堆排序 Heap Sort
- poj3041_匈牙利算法_二分图最小覆盖点(最大匹配数)
- Link 标签 rel=Stylesheet的实际作用
- Python在工作中的应用
- java播放音频文件2017.4.20绝对有效 粘贴运行!
- Android Retrofit2 Post请求添加Json类型参数笔记
- 每日三题-Day1-C(HDU 1069 Monkey and Banana 最大有序子序列和)
- iOS cookie详解
- Kafka安装配置
- hibernate教程--常用配置和核心API详解
- 分布式,云计算和大数据主流技术