【发布时间】:2017-02-10 01:28:47
【问题描述】:
我使用wow.js 关注了这个tutorial。我在 div 中使用它,而不是整个页面。我滚动 div,而不是页面。而且这个 Javascript 不起作用。
我需要解决什么问题?
<style>
body {
background-color: #78ccf0;
margin: 0;
padding: 0;
}
.header {
width: 100%;
height: 214px;
background-color: #000000;
}
.div_body {
width: 100%;
height: 450px;
background-color: #fff;
overflow: scroll;
background-image:url('page_fon.jpg');
font-size: 14pt;
}
.footer {
width: 100%;
height: 270px;
background-color: #000000;
}
</style>
<div class="div_body">text
<div class="wow bounceInRight" >animated text</div>
</div>
提前谢谢你。
【问题讨论】:
-
您的 html 中是否包含 wow.js?
-
是的,我为 wow.js 创建了这样的链接:
-
-
我添加了这个。在 中尝试过,最后在