首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > CSS >

<link rel="stylesheet" type="text/css" href=""&

2012-02-03 
link relstylesheet typetext/css href中的rel和type是什么作用?怎么使用?linkrel styleshe

<link rel="stylesheet" type="text/css" href="">中的rel和type是什么作用?怎么使用?
<link   rel= "stylesheet "   type= "text/css "   href= " "> 中的rel和type是什么作用?怎么使用?例如:
<head>
<link   rel= "stylesheet "   type= "text/css "   href= "mysytle.css ">
</head>  
  上面的href我知道了

[解决办法]
type指定所连接文档的MIME类型,css的MIME是type/css。
rel设定是指对象和链接目标的关系:

rel可选值, link还可以用Shortcut Icon, offline
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.

热点排行