Discuz!官方免费开源建站系统

 找回密码
 立即注册
搜索

[其他] SS模板应注重W3C标准

[复制链接]
my0888 发表于 2008-9-16 13:13:27 | 显示全部楼层 |阅读模式
  今天查了一下官方演示站,竟然不符合W3C标准。我想这是搜索引擎收录不理想的原因之一。
  官方站尚且如此,其他许多模板(包括我自己在用的)就更不用说了。几百个错误。
  开始好好修改一下,争取早日符合 W3C标准。
---------------------------------------------
http://jigsaw.w3.org/css-validat ... ng=1&lang=zh-cn

W3C CSS 校验器结果: http://x.discuz.net/ (CSS 版本 2.1)
错误: (36)
URI : http://x.discuz.net/templates/softsea/css/style.css
8 *  属性 word-break 不存在于 CSS 版本 2.1 , 但存在于 [css3] : break-all  
58 #menu ul  属性 zoom 不存在 : 1  
67 .content  属性 zoom 不存在 : 1  
80 #userpanel  属性 zoom 不存在 : 1  
100 #spacestar ul, #picnews ul  属性 zoom 不存在 : 1  
132 #friendlink ul  属性 zoom 不存在 : 1  
157 .mainarea .block  属性 zoom 不存在 : 1  
233 .quicklink  属性 zoom 不存在 : 1  
253 .list2col  属性 zoom 不存在 : 1  
260 .imagelist  属性 zoom 不存在 : 1  
264 .imagelist img  无效数字 : width Lexical error at line 264, column 114. Encountered: "&" (38), after : "" && this.width > this.height ? 100 : true);  
264 height  无效数字 : width 语法错误 height: expression(this.height > 100 ? 100 : true);  
264 font-size  无效数字 : width 语法错误 font-size: 12px;  
264 font-size  无效数字 : width Parse error - Unrecognized }  
265 font-size  无效数字 : min-width 属性 min-width 不存在于 all , 但存在于 all : 0  
268 .newimage  属性 zoom 不存在 : 1  
272 .newimage img  无效数字 : width Lexical error at line 272, column 110. Encountered: "&" (38), after : "" && this.width > this.height ? 75 : true);  
272 height  无效数字 : width 语法错误 height: expression(this.height > 75 ? 75 : true);  
272 font-size  无效数字 : width 语法错误 font-size: 12px;  
272 font-size  无效数字 : width Parse error - Unrecognized }  
273 font-size  无效数字 : min-width 属性 min-width 不存在于 all , 但存在于 all : 0  
284 .thumbmsglist li  属性 zoom 不存在 : 1  
286 .thumbmsglist li .thumb img  无效数字 : width Lexical error at line 286, column 165. Encountered: "&" (38), after : "" && this.width > this.height ? 75 : true);  
286 height  无效数字 : width 语法错误 height: expression(this.height > 75 ? 75 : true);  
286 height  无效数字 : width Parse error - Unrecognized }  
296 .thumb2col  属性 zoom 不存在 : 1  
301 .blockcategorylist  属性 zoom 不存在 : 1  
309 .catepic img  无效数字 : width Lexical error at line 309, column 114. Encountered: "&" (38), after : "" && this.height this.width ? 170: true);  
309 height  无效数字 : width 语法错误 height: expression(this.height > 170 ? 170: true);  
309 height  无效数字 : width Parse error - Unrecognized }  
328 #articlebody img  无效数字 : width Lexical error at line 328, column 106. Encountered: "&" (38), after : "" && this.width>this.height ? 500 : true);  
328 height  无效数字 : width 语法错误 height: expression(this.height > 500 ? 500 : true);  
330 height  无效数字 : width Parse error - Unrecognized }  
338 #commentlist dd img  无效数字 : width Lexical error at line 338, column 109. Encountered: "&" (38), after : "" && this.width>this.height ? 500 : true);  
338 height  无效数字 : width 语法错误 height: expression(this.height > 500 ? 500 : true);  
338 height  无效数字 : width Parse error - Unrecognized }  

↑ Top

警告 (68)
回复

使用道具 举报

wosky5 发表于 2009-3-21 22:05:55 | 显示全部楼层
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
回复

使用道具 举报

SSAY 发表于 2009-3-22 00:08:01 | 显示全部楼层
没必要.............连CSS自己的网站还通不过这个标准呢!
回复

使用道具 举报

SSAY 发表于 2009-3-22 00:13:54 | 显示全部楼层
http://jigsaw.w3.org/css-validat ... ng=1&lang=zh-cn

警告 (53)
URI : http://www.w3.org/StyleSheets/home.css
46 .invisible a  一样的颜色对于 background-color 和 color
46 .invisible  一样的颜色对于 background-color 和 color
57 .hide  一样的颜色对于 background-color 和 color
64 .whiteout  一样的颜色对于 background-color 和 color
84  颜色和背景颜色使用了相同的颜色 html 和 a img
84  颜色和背景颜色使用了相同的颜色 div.hpmt-logo 和 a img
84  颜色和背景颜色使用了相同的颜色 .whiteout 和 a img
84  颜色和背景颜色使用了相同的颜色 .hide 和 a img
84  颜色和背景颜色使用了相同的颜色 div.hpmt a:visited 和 a img
84  颜色和背景颜色使用了相同的颜色 ul.spot-block li 和 a img
84  颜色和背景颜色使用了相同的颜色 .invisible a 和 a img
84  颜色和背景颜色使用了相同的颜色 a:link 和 a img
84  颜色和背景颜色使用了相同的颜色 ul.spot-block 和 a img
84  颜色和背景颜色使用了相同的颜色 div.banner a:link 和 a img
84  颜色和背景颜色使用了相同的颜色 div.spot a:visited 和 a img
84  颜色和背景颜色使用了相同的颜色 .navbar 和 a img
84  颜色和背景颜色使用了相同的颜色 div.spot-image 和 a img
84  颜色和背景颜色使用了相同的颜色 img.newsImage 和 a img
84  颜色和背景颜色使用了相同的颜色 p.spot-block 和 a img
84  颜色和背景颜色使用了相同的颜色 body 和 a img
84  颜色和背景颜色使用了相同的颜色 a:visited 和 a img
84  颜色和背景颜色使用了相同的颜色 p.spot-more 和 a img
84  颜色和背景颜色使用了相同的颜色 img.newsImageNoBorder 和 a img
84  颜色和背景颜色使用了相同的颜色 #slogan 和 a img
84  颜色和背景颜色使用了相同的颜色 div.hpmt-name 和 a img
84  颜色和背景颜色使用了相同的颜色 h2.spot-subhead 和 a img
84  颜色和背景颜色使用了相同的颜色 p.hpmt-testimonial 和 a img
84  颜色和背景颜色使用了相同的颜色 div.spot 和 a img
84  颜色和背景颜色使用了相同的颜色 .headline 和 a img
84  颜色和背景颜色使用了相同的颜色 .invisible 和 a img
84  颜色和背景颜色使用了相同的颜色 div.hpmt 和 a img
84  颜色和背景颜色使用了相同的颜色 div.spot a:link 和 a img
84  颜色和背景颜色使用了相同的颜色 div.banner a:visited 和 a img
84  颜色和背景颜色使用了相同的颜色 div.hpmt a:link 和 a img
84  颜色和背景颜色使用了相同的颜色 .newsBlock 和 a img

URI : http://www.w3.org/StyleSheets/home-import.css
169  颜色和背景颜色使用了相同的颜色 .navBlock li 和 a.navlink img
169  颜色和背景颜色使用了相同的颜色 a.navlink:link 和 a.navlink img
169  颜色和背景颜色使用了相同的颜色 .navBlock div 和 a.navlink img
169  颜色和背景颜色使用了相同的颜色 .navBlock h2 和 a.navlink img
169  颜色和背景颜色使用了相同的颜色 .navBlock ul 和 a.navlink img
169  颜色和背景颜色使用了相同的颜色 .navBlock a:link 和 a.navlink img
169  颜色和背景颜色使用了相同的颜色 .navBlock p 和 a.navlink img
169  颜色和背景颜色使用了相同的颜色 .navBlock a:visited 和 a.navlink img
169  颜色和背景颜色使用了相同的颜色 a.navlink:visited 和 a.navlink img
169  颜色和背景颜色使用了相同的颜色 .navBlock 和 a.navlink img
169  颜色和背景颜色使用了相同的颜色 .navBlock span.navText 和 a.navlink img
259 p.hpmt-testimonial  包含空白的族科名称应该包含于蔻蔻中。如果省略了,任何 名字前或后的空白符号都会被忽略而名字中所有连续的空白 符号会被转换为单一个空格。
259 .hpmt-more  包含空白的族科名称应该包含于蔻蔻中。如果省略了,任何 名字前或后的空白符号都会被忽略而名字中所有连续的空白 符号会被转换为单一个空格。
343 div.spot  包含空白的族科名称应该包含于蔻蔻中。如果省略了,任何 名字前或后的空白符号都会被忽略而名字中所有连续的空白 符号会被转换为单一个空格。
343 p.spot-block  包含空白的族科名称应该包含于蔻蔻中。如果省略了,任何 名字前或后的空白符号都会被忽略而名字中所有连续的空白 符号会被转换为单一个空格。
343 ul.spot-block li  包含空白的族科名称应该包含于蔻蔻中。如果省略了,任何 名字前或后的空白符号都会被忽略而名字中所有连续的空白 符号会被转换为单一个空格。
343 .spot-more  包含空白的族科名称应该包含于蔻蔻中。如果省略了,任何 名字前或后的空白符号都会被忽略而名字中所有连续的空白 符号会被转换为单一个空格。
343 ul.spot-block  包含空白的族科名称应该包含于蔻蔻中。如果省略了,任何 名字前或后的空白符号都会被忽略而名字中所有连续的空白 符号会被转换为单一个空格。
连自己的网站都有错误,有什么理由来说别人的呢,你看看他自己的网站
回复

使用道具 举报

wpflove111 发表于 2009-3-22 09:14:29 | 显示全部楼层
呵呵 我的就能通过
回复

使用道具 举报

cr180 发表于 2009-3-22 12:20:12 | 显示全部楼层
不是说一定要遵守3C的标准,就是HTML和CSS之间的关系,一个是样式数据,一个是调用样式数据,相互对应,不多余!不错位  就可以了。

3C是什么?百度懂3C吗?百度首页就不符合3C
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-10-22 11:46 , Processed in 0.105328 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表