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>
謝謝!現在它工作正常。 – LesoFess