CSS验证的问题
我这里有一段代码
JScript code:
<script type="text/javascript">function CheckVote(obj){var oSel=obj.getElementsByTagName("input");var iLength=oSel.length;for(var i=0;i<iLength;i++){var flag=false;if(oSel[i].type=="checkbox" || oSel[i].type=="radio"){if(oSel[i].checked==true){flag=true;break;}}}if(flag==false){alert("请选择选项参与我们的调查");oSel[0].select();}return flag;}</script>
在进行验证时出现这种错误
HTML code:
Validation Output: 6 Errors
1. Error Line 320, Column 144: character ";" not allowed in attribute specification list
…th=oSel.length;for(var i=0;i<iLength;i++){var flag=false;if(oSel[i].type=="ch
✉
2. Error Line 320, Column 144: element "iLength" undefined
…th=oSel.length;for(var i=0;i<iLength;i++){var flag=false;if(oSel[i].type=="ch
✉
You have used the element named above in your document, but the document type you are using does not define an element of that name. 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 "Fram
相关问答:
CSS code:
body {
}
#x
{
width:1024px;
height:768%;
background-color:Red;
position:relative;
}
#x.top
{ position:absolute;
width:800px;
height:100px;
top:0px ......
简洁实用的鼠标经过变色的box效果,纯CSS制作,下面是源代码,可以另存为 .html 格式查看,或者在最下面有在线演示的地址。
HTML code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//E ......
以下是代码,可以另存为 .html 格式查看效果。
HTML code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt ......
急急急急急急急急急急急求HTML CSS JavaScript标准教程试题求HTML CSS JavaScript标准教程试题求HTML CSS JavaScript标准教程试题求HTML CSS JavaScript标准教程试题
电子书 后面 一般都有
下载频道啊
csdn下 ......