2

我在我的网站上使用Wow.js,它在除 Safari(在 Windows 上运行)之外的所有浏览器(甚至 IE ...)上都能正常工作。我正在使用引导程序 3。

我在控制台中看到以下错误:

MutationObserver is not supported by your browser.
wow.min.js:2WOW.js cannot detect dom mutations, please call .sync() after loading new content.

这里提到了这个问题但它是在通过 AJAX 加载内容的上下文中,我没有这样做。

这是我的标记:

<style>
    section#background-img{
        background: url("img.jpg");
        background-size: cover;
        background-attachment: fixed;
    }
</style>


<section id="background-img">
    <div class="container">
        <div class="row">
            <div class="col-lg-12 wow fadeInUp" data-wow-duration="800ms">
                <h2>What I can do for you</h2>
                <h3>And how I can help your business grow</h3>
            </div>
        </div>
        <div class="row wow fadeInUp" data-wow-duration="800ms">
            <div class="col-sm-4">
                <!-- content removed for brevity-->
            </div>
        </div>
    </div>
</section>

它应该如下所示: 在此处输入图像描述

但相反,我看到了这个: 在此处输入图像描述

我在此页面的其他地方使用 Wow.js,效果很好。当我使用背景图像时,问题似乎出现了。

4

0 回答 0