Heim > Artikel > Backend-Entwicklung > 网页元素位置散乱 点击“审查元素”恢复
网页元素位置错乱 点击“审查元素”恢复
原先网页都正常显示的,后来include了一个在线客服.php进来。
Firefox、IE11、360兼容模式中正常;360极速模式、Google Chrome中就会错位,但是点击右键“审查元素”就又都会恢复正常...
请问是什么原因?
下面是include进来的一个div
<br><div> <br><table> <br> <tbody> <br> <tr> <br> <td> </td> </tr> <br> <tr> <br> <td> <br> <table></table> align=center><br> </td> </tr> </tbody> <tbody> <br> <!-- <TR><br /> <TD align=middle><a href="" target="_blank"><IMG border=0 <br /> src="images/kefu/kefu_head.gif"></a> </TD><br /> </TR><br /> <TR><br /> <TD height=5></TD></TR> --><br> <tr> <br> <td><span>机加工-徐工:</span></td> </tr> <br> <tr> <br> <td><span><a><img alt="网页元素位置散乱 点击“审查元素”恢复" ></a></span></td> </tr> <br> <tr> <br> <td></td> </tr> <br> <tr> <br> <td><span>计量设备-周工:</span></td> </tr> <br> <tr> <br> <td><span><a><img alt="网页元素位置散乱 点击“审查元素”恢复" ></a></span></td> </tr> <br> <tr> <br> <td></td> </tr> <br> <tr> <br> <td><span>网络-小俞:</span></td> </tr> <br> <tr> <br> <td><span><a><img alt="网页元素位置散乱 点击“审查元素”恢复" ></a></span></td> </tr> <tr> <br> <td></td> </tr> <br> <tr> <br> <td><span>中国数控网官方微信:</span></td> </tr> <br> <tr> <br> <td><a><img alt="网页元素位置散乱 点击“审查元素”恢复" ></a></td> <br> </tr> <br> <tr> <br> <td> </td> </tr> </tbody> </table> <br> <tr> <br> <td></td> </tr> <br><div></div> </div><br><script><br /> 客服=function (id,_top,_left){<br /> var me=id.charAt?document.getElementById(id):id, d1=document.body, d2=document.documentElement;<br /> d1.style.height=d2.style.height='100%';me.style.top=_top?_top+'px':0;me.style.left=_left+"px";//[(_left>0?'left':'left')]=_left?Math.abs(_left)+'px':0;<br /> me.style.position='absolute';<br /> setInterval(function (){me.style.top=parseInt(me.style.top)+(Math.max(d1.scrollTop,d2.scrollTop)+_top-parseInt(me.style.top))*0.1+'px';},10+parseInt(Math.random()*20));<br /> return arguments.callee;<br /> };<br /> window.onload=function (){<br /> 客服<br /> ('kefu',100,-152)<br /> }<br /></script><br><br><script> <br /> lastScrollY=0; <br /> <br /> var InterTime = 1;<br /> var maxWidth=-1;<br /> var minWidth=-152;<br /> var numInter = 8;<br /> <br /> var BigInter ;<br /> var SmallInter ;<br /> <br /> var o = document.getElementById("kefu");<br /> var i = parseInt(o.style.left);<br /> function Big()<br /> {<br /> if(parseInt(o.style.left)<maxWidth)<div class="clear"> </script>