今天查了一下官方演示站,竟然不符合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) |