jQuery Vegas插件覆盖不起作用 [英] Jquery Vegas Plugin overlay not working
本文介绍了jQuery Vegas插件覆盖不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 http://vegas.jaysalvat.com/documentation/slideshow/
背景变化很好,但是重叠图像无法正常工作或无法呈现.
The backgrounds are changing fine, but the overlay image is not working or rendering.
这是我在页面顶部的代码:
Here is my code I have in the head of the page:
<script>
$.vegas('slideshow', {
backgrounds:
[
{ src:'/../../images/backdrop.png' },
{ src:'/../../images/backdrop_yellow_trees.png' },
{ src:'/../../images/backdrop.png' }
]
})('overlay', {
src:'/../../assets/vegas/overlays/13.png'
});
</script>
推荐答案
这里有同样的问题,但是基于对@pawel的答复,我来到了这个问题
Same problem here, but based on the @pawel reply over I came to this
$(function() {
$.vegas('slideshow', {
backgrounds:[
{ src:'images/pic1.jpg', fade:800 },
{ src:'images/pic2.jpg', fade:800 },
{ src:'images/pic3.jpg', fade:800 },
{ src:'images/pic4.jpg', fade:800 }
]
})('overlay', {
src:'vegas/overlays/15.png'
});
});
我们可能犯了同样的错误,只是从文档中复制粘贴...
We probably made the same mistake, just copy paste from the documentation...
这篇关于jQuery Vegas插件覆盖不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文