ie6对hover兼容性问题的解决:

ie6对hover兼容性问题的解决:

1,在body里添加以下样式:

behavior:url(../scripts/csshover.htc);

csshover.htc可直接在网上下载

2,js解决

判断是否为ie6

window.onload=function(){

var isIE=!!window.ActiveXobject:

var is IE6=isIE&&XMLHttpRequest;

if(isIE6){}

}

3,jq解决

$(function(){

if($.browser.msie && $.browser.version.substr(0,1)<7){

})

}) 

posted @ 2016-12-15 14:06  小僵尸  阅读(253)  评论(0编辑  收藏  举报