css样式stylesheet怎么用?stylesheet用法浅析

发布时间:2019-11-25编辑:脚本学堂
有关css样式中stylesheet语法的用法,stylesheet用于告诉浏览器需要引用外部样式表文件为哪一个,本文给出了stylesheet中具体的值及相互关系。

css样式中stylesheet用法

stylesheet英文翻译为样式表,告诉浏览器需要引用外部样式表文件为哪个。

例如:<link href="css/_com_style.css" rel="stylesheet" type="text/css">,
引用css文件夹下面的jbxue_com_style.css这个样式文件,其中rel(relation)标签属性用于设置对象和链接目的间的关系,也就是指明你链接进来的对象是个什么东西的,具体的值及其所表示的关系:
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.

翻译:
备用:包含链接的文件替代版本。
附录:网页是为页面集附录。
书签书签。
第二章:页面,一个页面设置章。
内容:内容文件表。
版权所有:当前页版权声明。
词汇表:为当前页的词汇。
帮助:帮助文档。
指数:为当前页的索引文件。
下一步:在一个序列中的下一个文件。
离线:超链接包含路径的CDF文件可用于脱机收藏夹。
沪指:序列中的前一个文档。
部分:网页是一个套节。
快捷:图标链接包含一个图标文件,可以用于喜爱或链接路径。
启动:一集的第一个文件。
样式:样式表。
分部:网页是一款为一组页面。