• 2007-12-29

    IE6 IE7 Firefox兼容性问题 - []

    通常人们使用hacker,如下:

    #example { background: red; } /* Moz FF */
    * html #example { background: green; } /* IE6 */
    *+html #example { background: yellow; } /* IE7 */

    不过必须添加!DOCTYPE 声明,否则无效。

    而标签内的属性,则以_,+_作为区别,如:

    #someNode
    {
        position: fixed; /*Firefox and other explorer*/
       #position: fixed;/*IE7,and others after*/
       _position: fixed;/*IE6 and others before*/
    }

    注意顺序,一定是ff,ie7,ie6。

    本想放弃IE6的情况,某兄的主机检测结果显示,IE6的用户在IE群中占据60%以上,实在令人头疼。最近经常头疼,想来一定是此问题所致。

     

     

    具体兼容格式表,见下图:

     





发表评论