代码之家  ›  专栏  ›  技术社区  ›  Incognito

<link/>标记的其他用途是什么?[副本]

  •  6
  • Incognito  · 技术社区  · 14 年前


    What does <link> tag do besides including stylesheets?

    <link rel="stylesheet" type="text/css" href="example.css" />

    有了link标签,我们可以定义一个关系类型和mime类型,但我从未见过这样做。有什么例子 真实的 rel attributes ? 存在什么样的支持问题?

    我不知道我们能不能用这个标签,浏览器如何处理它,等等。。。

    从我自己的游戏来看,我似乎无法通过JavaScript读取任何调用的数据,但是浏览器仍然处理内容。

    1 回复  |  直到 8 年前
        1
  •  5
  •   Dustin Laine    14 年前

    RSS:

    <link rel="alternate" type="application/rss+xml" title="RSS FEED" href="/RSS" />
    

    <link rel="shortcut icon" href="/favicon.ico">
    

    iPHONE/iPAD图标:

    <link rel="apple-touch-icon" href="/apple-touch-icon.png">
    

    <link rel="search" type="application/opensearchdescription+xml" title="" href="/search.xml">
    

    我确信这有一个内联的专利使用的数目。