解决不同浏览器窗口大小是否显示某DIV问题
解决不同浏览器窗口大小是否显示某DIV问题:
<SCRIPT LANGUAGE="JavaScript">function resize(){//document.getElementById("tiao").width=window.screen.clientWidth;//document.getElementById("tiao").style.background="url('../images/tiao.gif') repeat-x 0 0";if(document.body.clientWidth>=1200){ document.getElementById("knife").style.display="block"; }else{document.getElementById("knife").style.display="none"; }}function callLogin(){alert("callLogins");}resize();window.onresize=function(){resize();};</SCRIPT>?
?