CSS:Microsoft Edge中的修订滑块幻灯片

CSS:Microsoft Edge中的修订滑块幻灯片,css,microsoft-edge,Css,Microsoft Edge,有一个在Chrome、Firefox和Safari中看起来不错的旋转滑块 在Microsoft Edge中,滑块向下推至侧边栏#框末端下方 你能看到我们是如何将其推回到其他浏览器中的吗?尝试在theme/child-theme-functions.php文件的末尾添加此内容: add_action('wp_footer', 'ava_auto_resize'); function ava_auto_resize(){ ?> <script> (function($){

有一个在Chrome、Firefox和Safari中看起来不错的旋转滑块

在Microsoft Edge中,滑块向下推至侧边栏
#框
末端下方


你能看到我们是如何将其推回到其他浏览器中的吗?

尝试在theme/child-theme-functions.php文件的末尾添加此内容:

add_action('wp_footer', 'ava_auto_resize');
function ava_auto_resize(){
?>
<script>
(function($){   
    var int = window.setInterval(function(){
        $(window).trigger('resize');
    }, 2000);

    $(window).load(function () {    
        setTimeout(function() {
            clearInterval(int);
        }, 3000);
    });
})(jQuery);
</script>
<?php
}
add_action('wp_footer','ava_auto_resize');
函数ava_auto_resize(){
?>
(函数($){
var int=window.setInterval(函数(){
$(window.trigger('resize');
}, 2000);
$(窗口).load(函数(){
setTimeout(函数(){
清除间隔(int);
}, 3000);
});
})(jQuery);