<link href ="css/index.css" rel="Stylesheet" type="text/css" />
2013-08-06 15:11
627 查看
<link href ="css/index.css" rel="Stylesheet" type="text/css" />
首先你这整条语句的意思就是:调用一个外部的CSS样式文件。他是通过<link/>这个标签来调用的。
然后, href="css/index.css" 表示外部样式文件的路径,rel="stylesheet"表示调用的是一种样式。
最后,type="text/css" 就具体说明调用样式的文件类型为CSS样式!
好处:调用外部样式能达到内容与样式分离的效果,优化网站!
这个标签的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.
首先你这整条语句的意思就是:调用一个外部的CSS样式文件。他是通过<link/>这个标签来调用的。
然后, href="css/index.css" 表示外部样式文件的路径,rel="stylesheet"表示调用的是一种样式。
最后,type="text/css" 就具体说明调用样式的文件类型为CSS样式!
好处:调用外部样式能达到内容与样式分离的效果,优化网站!
这个标签的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 rel="stylesheet" type="text/css" href="css/index.css">是啥意思?
- <link rel="stylesheet" type="text/css" href="css/index.css">是啥意思? .
- 可否控制<link type=text/css rel=stylesheet href=style.css>
- <link rel="icon" type="image/vnd.microsoft.icon" href="浏览器地址栏里显示的图片.ico"/>
- <link rel="shortcut icon" rel="stylesheet" href="favicon.ico" />小图标
- <form action="get.php" method="post" id="tform"> <input type="text" name="one"> <a href="jav
- <div>标签(css与html写在一起 style type=“text/css”)
- <link rel="stylesheet" href="css/style.css">解说
- <input type="text" name="" id=""/>中name和id的区别
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- 使用<input type="text" value=<%=str%>>出现取值不全的问题
- <input type="text"/>可通过width="" height=""设置宽度高度
- <input type="text" value="">实现输入提示
- <s:textfield name="number" value="%{#student.number}" cssClass="InputStyle"/>
- <input type="text"> and <html:text> 禁止复制
- <%@page contentType="text/html;charset=gbk"%>与<meta http-equiv="Content-Type" content="text/html; ch
- <link rel="canonical" href="www.home.com">
- <script type="text/javascript" defer="defer">
- <script type="text/javascript">alert("hello world");</script>
- <input type=“text” name="">width设定无效