1
我在玩jQuery一点点。我做了一切正常,并没有错误,它工作正常(我试图做我自己的插件)。但是,当我尝试验证页面使用http://validator.w3.org我得到1错误:文档类型不允许元素“脚本”在这里。HTML验证器返回“文档类型不允许元素”脚本“here”
我不知道我做错了什么。这里是我的HTML(JS在这里并不重要我猜):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Admin</title>
<!-- Load jQuery -->
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/Document-Load.js"></script>
<link rel="stylesheet" type="text/css" href='css/iG_Style.css' />
</head>
<body>
<div id="body"></div>
</body>
</html>
当通过直接输入进行验证时,该标记完美无缺。你确定这个例子正确地重现你的问题吗? – Brandon
同上......它对我来说也很好。 –
“Tritto”...适合我,我尝试了直接和文件上传。 – CaffGeek