1. 论坛系统升级为Xenforo,欢迎大家测试!
    排除公告

W3C CSS 校验器结果

本帖由 fen2006-10-07 发布。版面名称:前端开发

  1. fen

    fen New Member

    注册:
    2005-12-18
    帖子:
    3,050
    赞:
    25
    * 行 : 23 (Level : 1) 你没有为你的背景色设置(前景)颜色 : #content
    * 行 : 31 (Level : 1) 你没有为你的背景色设置(前景)颜色 : #content_2
    * 行 : 39 (Level : 1) 你没有为你的(前景)颜色设置背景色 : #footer
    * 行 : 64 (Level : 1) 你没有为你的背景色设置(前景)颜色 : #left
    * 行 : 75 (Level : 1) 你没有为你的(前景)颜色设置背景色 : #sidebar h2
    * 行 : 86 (Level : 1) 你没有为你的(前景)颜色设置背景色 : #header h1 a
    * 行 : 86 (Level : 1) 颜色和背景颜色使用了相同的颜色 #header 和 #header h1 a
    * 行 : 89 (Level : 1) 你没有为你的(前景)颜色设置背景色 : #header h1 a:hover
    * 行 : 110 (Level : 1) 你没有为你的(前景)颜色设置背景色 : .entrytitle h2
    * 行 : 130 (Level : 1) 颜色和背景颜色使用了相同的颜色 #header 和 .latest li a
    * 行 : 130 (Level : 1) 你没有为你的(前景)颜色设置背景色 : .latest li a
    * 行 : 136 (Level : 1) 你没有为你的(前景)颜色设置背景色 : .latest li a:hover
    * 行 : 136 (Level : 1) 颜色和背景颜色使用了相同的颜色 #header 和 .latest li a:hover
    * 行 : 140 (Level : 1) 你没有为你的背景色设置(前景)颜色 : .recentcomments
    * 行 : 146 (Level : 1) 你没有为你的(前景)颜色设置背景色 : .recentcomments ul
    * 行 : 152 (Level : 1) 你没有为你的(前景)颜色设置背景色 : .recentcomments ul li a
    * 行 : 172 (Level : 1) 你没有为你的(前景)颜色设置背景色 : .related li a
    * 行 : 178 (Level : 1) 你没有为你的(前景)颜色设置背景色 : .related li a:hover
    * 行 : 194 (Level : 1) 你没有为你的(前景)颜色设置背景色 : #sidebar ul li a
    * 行 : 200 (Level : 1) 你没有为你的背景色设置(前景)颜色 : #sidebar ul li a:hover
    * 行 : 207 (Level : 1) 你没有为你的(前景)颜色设置背景色 : a
    * 行 : 210 (Level : 1) 你没有为你的(前景)颜色设置背景色 : a:hover
    * 行 : 213 (Level : 1) 你没有为你的(前景)颜色设置背景色 : #footer a
    * 行 : 217 (Level : 1) 你没有为你的背景色设置(前景)颜色 : #header
    * 行 : 222 (Level : 1) 你没有为你的(前景)颜色设置背景色 : #header p
    * 行 : 239 (Level : 1) 你没有为你的(前景)颜色设置背景色 : .entrytitle a
    * 行 : 241 (Level : 1) 你没有为你的(前景)颜色设置背景色 : .entrymeta
    * 行 : 246 (Level : 1) 你没有为你的(前景)颜色设置背景色 : .entrymeta a
    * 行 : 255 (Level : 1) 你没有为你的(前景)颜色设置背景色 : .entry-1 .entrymeta
    * 行 : 258 (Level : 1) 你没有为你的(前景)颜色设置背景色 : .entry-1 .entrymeta a
    * 行 : 264 (Level : 1) 你没有为你的(前景)颜色设置背景色 : .entry-1 .entrytitle a
    * 行 : 268 (Level : 1) 你没有为你的(前景)颜色设置背景色 : .entry-1 .entrytitle a:hover
    * 行 : 285 (Level : 1) 你没有为你的背景色设置(前景)颜色 : .even
    * 行 : 289 (Level : 1) 一样的颜色对于 background-color 和 border-right-color : .alt
    * 行 : 289 (Level : 1) 一样的颜色对于 background-color 和 border-left-color : .alt
    * 行 : 289 (Level : 1) 你没有为你的背景色设置(前景)颜色 : .alt
    * 行 : 289 (Level : 1) 一样的颜色对于 background-color 和 border-top-color : .alt

    这些是什么意思啊? 看不懂.
    :ft: :ft:
     
  2. Ulysses

    Ulysses New Member

    注册:
    2006-02-05
    帖子:
    10,018
    赞:
    16
    color 和 background-color 一般需要成对出现。
     
  3. fen

    fen New Member

    注册:
    2005-12-18
    帖子:
    3,050
    赞:
    25
    #content{
    background:#FFFFFA url(./images/main.jpg) no-repeat;
    float:left;
    padding:10px;
    padding-top:410px;
    width:480px;
    font-size:1em;
    }
    这样怎么会有问题?
    body{
    background:#C8C8C8 url(./images/background.png) center repeat-y;
    color:#666;
    font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif;
    font-size:62.5%;
    line-height:1.7;
    text-align:center;
    margin:0;
    }
     
  4. shangjay

    shangjay New Member

    注册:
    2006-01-13
    帖子:
    3,530
    赞:
    15
    你有 color 就要有 background-color

    但是这只是警告,css还是可以通过的。用地址效验,不用上载
     
  5. Ulysses

    Ulysses New Member

    注册:
    2006-02-05
    帖子:
    10,018
    赞:
    16
    你这个是简化的写法,实际上已经包含了 background-color 这个样式。

    另外定义 color 样式,就可以了。
     
  6. fen

    fen New Member

    注册:
    2005-12-18
    帖子:
    3,050
    赞:
    25
    明白了 谢谢
    这就去试一下
     
  7. lonely

    lonely New Member

    注册:
    2005-12-08
    帖子:
    685
    赞:
    11
    明白了.哈哈我以前从来不注意CSS的.
     
  8. kamsang

    kamsang New Member

    注册:
    2005-10-05
    帖子:
    9,080
    赞:
    58
    警告的我都没看过,只把错误改改就行了..