rel 属性规定当前文档与被链接文档之间的关系。stylesheet属性值表示文档的外部样式表。
type 属性规定被链接文档的 MIME 类型。
该属性最常见的 MIME 类型是 “text/css”,该类型描述样式表。
在下面的例子中,rel 属性和type属性指示被链接的文档是一个样式表:
<head>
<link rel="stylesheet" type="text/css" href="test.css" />
</head>
rel 属性规定当前文档与被链接文档之间的关系。stylesheet属性值表示文档的外部样式表。
type 属性规定被链接文档的 MIME 类型。
该属性最常见的 MIME 类型是 “text/css”,该类型描述样式表。
在下面的例子中,rel 属性和type属性指示被链接的文档是一个样式表:
<head>
<link rel="stylesheet" type="text/css" href="test.css" />
</head>