当前位置:软件学堂 > 资讯首页 > 网络编程 > DIV+CSS > 在css样式中的stylesheet是什么意思

在css样式中的stylesheet是什么意思

2014/11/27 14:29:41作者:佚名来源:网络

移动端

当打开网站源码我们常常会看到有一行<link href="css/style.css" rel="stylesheet" type="text/css">这样的代码,有很多小伙伴会问这代码中的stylesheet是什么意思
stylesheet英文翻译为样式表,不错这条代码的作用就是告诉浏览器需要引用外部样式表文件为那个,例如:<link href="css/xue51_com_style.css" rel="stylesheet" type="text/css">,意思就是引用css文件夹下面的xue51_com_style.css这个样式文件,其中rel(relation)标签属性用于设置对象和链接目的间的关系,也就是指明你链接进来的对象是个什么东西的,具体的值及其所表示的关系如下:
stylesheet是什么意思
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文件可用于脱机收藏夹。
沪指:序列中的前一个文档。
部分:网页是一个套节。
快捷:图标链接包含一个图标文件,可以用于喜爱或链接路径。
启动:一集的第一个文件。
样式:样式表。
分部:网页是一款为一组页面。
好了,以上就是有关stylesheet是什么意思的内容,希望对你有所帮助。