ie报参数无效错误原因
<div id="scon" style="width:690px;float:left;position:relative;top:0px">
js中有一句
具体这一行 document.getElementById("scon").style.top = -y * result + "px";谷歌,火狐都正确的
------解决方案--------------------
.style.top = '\"-' +(y * result) + 'px\"';
试试
------解决方案--------------------
.style.top = '\"-' +(y * result) + 'px\"';
试试
------解决方案--------------------
alert看看y和result值是否正确
------解决方案--------------------
那就指定个高度
查询谷 - www.chaxungu.com
ie报参数无效异常原因
编辑:chaxungu时间:2022-10-02 23:15:34分类:web开发