请选择 进入手机版 | 继续访问电脑版

经典论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

蓝色理想 最新研发动态 新增登录提醒插件 - 用至我的站点 地图任务一定要做 - 给官方提建议

论坛活动及任务 地图和邮件任务 请多用悬赏提问 热夏来袭,选一款蓝色理想的个性T恤吧!

MIUI手机主题设计大赛,奔驰大奖等你拿! 急需前端攻城狮,获得内部推荐机会 悬赏答疑,赚取积分兑奖品!

查看: 770|回复: 2

[求助] 页面body中使用onload如何通过XHTML验证?? [复制链接]

sesxc 楼主
帖子
44
体力
203
威望
0
发表于 2008-1-30 13:18:10 |显示全部楼层
页面中的<body onLoad="Show()"> 无法通过W3C验证,请教各位如何可解决?以下为验证出错提示信息

  1. Validation Output: 1 Error
  2. Line 11, Column 13: there is no attribute "onLoad".
  3. <body onLoad="Show()">✉
  4. You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

  5. This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

  6. How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
复制代码

[ 本帖最后由 sesxc 于 2008-1-30 13:20 编辑 ]
帖子
401
体力
1651
威望
0
发表于 2008-1-30 13:37:07 |显示全部楼层
应该是大小写的问题!
http://www.css2sky.cn
sesxc 楼主
帖子
44
体力
203
威望
0
发表于 2008-1-30 13:54:14 |显示全部楼层
原帖由 purecss 于 2008-1-30 13:37 发表
应该是大小写的问题!

谢谢,是大小写问题
您需要登录后才可以回帖 登录 | 注册


Archiver|手机版|blueidea.com ( 京ICP备05002321号 )    

GMT+8, 2012-7-29 08:19 , Processed in 0.054996 second(s), 7 queries , Gzip On, Memcache On.

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部