当前位置: 首页 > 图文教程 > 网页制作 > CSS样式表 > CSS样式表尽量放到网页头部

CSS样式表
论WEB标准在中国的灰飞烟灭
CSS 清除浮动元素方法 整理
css FF与IE兼容性总结
div css 鼠标悬停在div层上时,div背景色改变
IE6不支持CSS中的min-width/height属性问题的解决方法
CSS 自动定位 的应用
CSS 样式命名规则
IE7下生成高质量CSS缩略图
编写CSS代码时样式的命名规则
用css来实现透视效果
word-wrap
div+css排版的样例
HTML结构化:实践DIV+CSS网页布局入门指南
CSS锦囊
DIV_圆边圆角的实现
凹陷文字 推荐
自定义容器和字体大小
IE最新的欺骗代码
ASP+CSS 实现列表隔行换色
无边框表格

CSS样式表尽量放到网页头部


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-10-13   浏览: 158 ::
收藏到网摘: n/a

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