忽略啊。不用想了。IE5也忽略掉,不用IE6就不管。

解决方案 »

  1.   

    我就用分两下就可以了。
    if(document.all){ alert("IE!") }
    else { alert("No IE!"); }
      

  2.   

    这要看具体情况:
    如果你的用户使用的绝大多数是IE的话,就可以忽略;
    否则,就只有多加些考虑了。
    而且,有一些新的技术,较低版本的IE还有NS都不支持。
    所以,最好在相关位置注明:“建议使用IEx+以上版本浏览器观看本网站”,等等
      

  3.   

    function lib_bwcheck(){ 
    this.ver=navigator.appVersion; 
    this.agent=navigator.userAgent
    this.dom=document.getElementById?1:0
    this.win = (navigator.appVersion.indexOf("Win")>0);
        this.xwin = (navigator.appVersion.indexOf("X11")>0);
    this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
    this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
    this.ie4=(document.all && !this.dom)?1:0;
    this.ie=this.ie4||this.ie5||this.ie6
    this.mac=this.agent.indexOf("Mac")>-1
    this.opera5=this.agent.indexOf("Opera 5")>-1
    this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
    this.ns4=(document.layers && !this.dom)?1:0;
    this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5 || this.dom||false);
        this.width = null;
        this.height = null;
    return this
    }
    bw= new lib_bwcheck();
    这是我常用的一种判定方式,你想忽略它为什么,如果你真的只想ie浏览那么if(!bw.ie)window.close(),为什么不让那些人浏览你的叶面???
      

  4.   

    致楼上:
    不会呀,基本上只有两种主要的情况就是ie和ns的,其他的浏览器遵循ie ns这两种结构,然后就是版本了,不是很麻烦吧,我觉得至少应该让ns用户可以浏览
      

  5.   

    哈哈
    我倒觉得NS的忽略了也轻松多了。
    IE5的也应该忽略啊。经常非法操作。
    IE6暂时还算可以。(虽然经常有几十M的内存不释放,HTTP连接经常出问题)
    现在用ASP做应用真爽,叫客户全装IE6也不是难事。
    还是做网站的惨,又要兼容又要好界面。
      

  6.   

    我只遵循W3C的正式标准,比如XHTML, DOM, CSS。
    Mozilla 对标准的支持程度好于 IE,所以我宁可忽略 IE。当然如果是商业用途,我会按照顺序考虑以下浏览器:
    IE 6, Mozilla (Netscape 6+), IE 5.5, IE 5, Opera, IE 4, Other.
      

  7.   

    IE有个极烂的BUG。就是POST数据的时候,同一进程的IE的HTTP操作就处于等待状态。。
    在CSDN发帖经常遇到这个了。
    不是CSDN的错,根本就是IE的问题。。
    上次我试检测上传1G的进度,就是因为GET没有办法响应,有结果都显示不出来,
    同时开个MOZILLA监视却可以。
      

  8.   

    我认为 IE5+ 和 Mozilla(NS 6+) 是必须兼容的.