2016-12-06 173 views
0

我實際上正在研究website,我在Internet Explorer上遇到問題。Internet Explorer 11:Mouseenter Mouseleave問題

在頁面的右側(灰色)上有一個帶有「i」圖標的按鈕。這個按鈕是一個模式,在模式窗口中,鼠標上方有一個「mouseenter mouseleave」表格。

該動畫在Chrome,Firefox等上完美運行,但不適用於舊版本的Internet Explorer。

最後5行的切換功能不起作用。

關於如何解決它的任何想法?

PS:我使用WordPress的

代碼:

<script> 

jQuery(document).ready(function($){ 

$(document.body).on("mouseenter mouseleave", ".tablepress-id-2 .row-2.even", function() { 
$('.buro_1').toggle(); 
}); 

$(document.body).on("mouseenter mouseleave", ".tablepress-id-2 .row-3.odd", function() { 
$('.buro_2').toggle(); 
}); 

$(document.body).on("mouseenter mouseleave", ".tablepress-id-2 .row-4.even", function() { 
$('.buro_3').toggle(); 
}); 

$(document.body).on("mouseenter mouseleave", ".tablepress-id-2 .row-5.odd", function() { 
$('.buro_4').toggle(); 
}); 

$(document.body).on("mouseenter mouseleave", ".tablepress-id-2 .row-6.even", function() { 
$('.buro_5').toggle(); 
}); 

$(document.body).on("mouseenter mouseleave", ".tablepress-id-2 .row-7.odd", function() { 
$('.buro_6').toggle(); 
}); 

$(document.body).on("mouseenter mouseleave", ".tablepress-id-2 .row-8.even", function() { 
$('.buro_7').toggle(); 
}); 

$(document.body).on("mouseenter mouseleave", ".tablepress-id-2 .row-9.odd", function() { 
$('.buro_8').toggle(); 
}); 

$(document.body).on("mouseenter mouseleave", ".tablepress-id-2 .row-10.even", function() { 
$('.buro_9').toggle(); 
}); 

$(document.body).on("mouseenter mouseleave", ".tablepress-id-2 .row-11.odd", function() { 
$('.buro_10').toggle(); 
}); 

$(document.body).on("mouseenter mouseleave", ".tablepress-id-2 .row-12.even", function() { 
$('.buro_11').toggle(); 
}); 

$(document.body).on("mouseenter mouseleave", ".tablepress-id-2 .row-13.odd", function() { 
$('.buro_12').toggle(); 
}); 

$(document.body).on("mouseenter mouseleave", ".tablepress-id-2 .row-14.even", function() { 
$('.buro_13').toggle(); 
}); 

$(document.body).on("mouseenter mouseleave", ".tablepress-id-2 .row-15.odd", function() { 
$('.buro_14').toggle(); 
}); 

$(document.body).on("mouseenter mouseleave", ".tablepress-id-2 .row-16.even", function() { 
$('.buro_15').toggle(); 
}); 

$(document.body).on("mouseenter mouseleave", ".tablepress-id-2 .row-17.odd", function() { 
$('.buro_16').toggle(); 
}); 

$(document.body).on("mouseenter mouseleave", ".tablepress-id-2 .row-18.even", function() { 
$('.buro_17').toggle(); 
}); 

$(document.body).on("mouseenter mouseleave", ".tablepress-id-2 .row-19.odd", function() { 
$('.buro_18').toggle(); 
}); 

}); 
</script> 

回答

0

的問題是,因爲你有誰隱藏元素的CSS。嘗試刪除所有:(上http://www.aquila-pratteln.ch/wp-content/uploads/js_composer/custom.css?ver=4.12

@media all and (-ms-high-contrast:none), all and (-ms-high-contrast:active) 
.buro_14 { 
    display: none !important; 
} 

@media all and (-ms-high-contrast:none), all and (-ms-high-contrast:active) 
.buro_15 { 
    display: none !important; 
} 

@media all and (-ms-high-contrast:none), all and (-ms-high-contrast:active) 
.buro_16 { 
    display: none !important; 
} 

@media all and (-ms-high-contrast:none), all and (-ms-high-contrast:active) 
.buro_17 { 
    display: none !important; 
} 

@media all and (-ms-high-contrast:none), all and (-ms-high-contrast:active) 
.buro_18 { 
    display: none !important; 
} 

該行14,15,16,17,18已經display:block嘗試,以與IE9這個display:none

做工精細,更

+0

謝謝!現在它工作正常。 – LesoFess