[英]No Next / Prev Button on jQuery colorbox
我在我的網站上使用jQuery colorbox( http://www.jacklmoore.com/colorbox/example3/ )。 而且我正在嘗試添加多個iframe框。 除了沒有NEXT / PREV按鈕外,它都在工作。
這是我的代碼:
<script>
$(document).ready(function(){
$('#group1').colorbox({
arrowKey: true,
open: true,
opacity: 0.5,
iframe: true,
innerWidth:1000,
innerHeight:600,
scrolling:false,
rel:"group1"
});
});
</script>
<a id="group1" href="http://tokobagus.com">Tokobagus</a>
<a id="group1" href="http://berniaga.com">Kaskus</a>
如您所見,那里有arrowKey:true,但是箭頭仍然沒有顯示。 任何想法?
謝謝...
由於id
是唯一的,請嘗試將其更改為兩個錨點的class:
<a class="group1" href="http://tokobagus.com">Tokobagus</a>
<a class="group1" href="http://berniaga.com">Kaskus</a>
並使用$('.group1')
代替$('#group1')
只是您必須使用class
而不是id
。 檢查解決方案
http://jsfiddle.net/2kda6/
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.