日期:2014-01-22  浏览次数:20965 次

网页制造aiyiweb文章简介:不过, HTML规范的建议,将他们放在文件头标记。次要的好处是,您的网页加载速度似乎更快一些。

  从技术上讲,你可以将款式您想要的位置。
  不过, HTML规范的建议,将他们放在文件头标记。
  次要的好处是,您的网页加载速度似乎更快一些。
<head>  
    <title>应把所有CSS款式都放在Head Tag - www.Aiyiweb.Com</title>  
    <link rel="stylesheet" type="text/css" media="screen" href="path/Aiyiweb.Com/file.css" />  
    <link rel="stylesheet" type="text/css" media="screen" href="path/Aiyiweb.Com/anotherFile.css" />  
</head>  

While researching performance at Yahoo!, we discovered that moving stylesheets to the document HEAD makes pages appear to be loading faster. This is because putting stylesheets in the HEAD allows the page to render progressively.
                                                                                                                       - ySlow Team