css - 是否有使用样式表和 next 的 HTML5 <link rel> 属性组合的用例?

标签 css html stylesheet

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 a rel attribute with the value next 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/

相关文章:

javascript - 在 vanilla JavaScript 中删除所有具有特定子元素(嵌套至少 2 层)的元素

css - 在 ajax 更新上添加 CSS 类?

javascript - 无法找到在小屏幕上隐藏左侧菜单的代码

javascript - 类似于 tryruby.org 或 codecademy.com 的 CSS 学习控制台

javascript - Photo Sphere Viewer 插件 停止自动旋转

javascript - 如何在 React 的数据预览中显示复选框 bool 值?

html - 当里面有很多文字时,在 textarea 中打字 super 慢

python - PySide:带有样式表的圆角不起作用

css - 这是 "word wrap"问题吗?

javascript - jQuery 样式切换器无法正确更改宽度