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
相关问答:
我想做的是这样一个效果,你左边做的是导航菜单,假如有若干个超级链接,点击某个后这个链接的内容要到右边显示。当然这个功能可以使用Html中的 frame框架实现,但是现在有很多的浏览器不支持这种frame,能不能用css ......
css制作的弹出菜单,鼠标移出后菜单消失,我现在想让鼠标移出后菜单保留。就像伊利公司(www.yili.com)一样。
是不是要改菜单弹出的js或css代码。代码如下:就是不知如何改?
function menuFix()
{var sfEls = doc ......
CSS code:
body {
}
#x
{
width:1024px;
height:768%;
background-color:Red;
position:relative;
}
#x.top
{ position:absolute;
width:800px;
height:100px;
top:0px ......
我的样式表写的是:
body{
margin-left: 15%;
margin-right: 15%;
......