HTML5 规范规定:
Each link created for a link element is handled separately. For instance, if there are two link elements with
rel="stylesheet"
, they each count as a separate external resource, and each is affected by its own attributes independently. Similarly, if a single link element has arel
attribute with the valuenext stylesheet
, it creates both a hyperlink (for the next keyword) and an external resource link (for the stylesheet keyword), and they are affected by other attributes (such as media or title) differently.
http://dev.w3.org/html5/spec/Overview.html#attr-link-rel
使用 rel="next stylesheet"
的用例是什么?同样<link>
标签?
最佳答案
我相信这个示例只是为了说明可以在同一个 link
标记中使用外部资源和超链接关键字。来自 list of link types , stylesheet
似乎是唯一常用的外部资源类型,这就是我猜这个示例选择它的原因。 next
很可能是 prev
或任何其他超链接关键字。
关于css - 是否有使用样式表和 next 的 HTML5 <link rel> 属性组合的用例?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4557165/