두 개의 캐 러셀이 서로 아래에 있으며, 탐색 화살표의 위치를 변경하기 위해 "navContainer"기능을 사용하고 있습니다 (슬라이더 위에 위치 시켰습니다).올빼미 캐 러셀 탐색 기능이 작동하지 않습니다.
하나의 슬라이더가있는 경우 작동하지만 두 개 이상의 슬라이더에 대한 탐색은 첫 번째 "탐색"div에 있습니다. 대신 각 탐색 버튼은 자체 div에 있어야합니다.
당신은 내가 여기에 무슨 말의 더 나은 아이디어를 얻을 수 있습니다 http://jsfiddle.net/vnpm1y06/226/
코드는 다음과 같습니다
<div class="about">
<div id="navhere"></div> <!-- This is where nav should appear -->
<div class="owl-carousel">
<div class="item"><h4>About</h4></div>
<div class="item"><h4>Us</h4></div>
</div>
</div>
<div class="contact">
<div id="navhere"></div> <!-- This is where nav should appear -->
<div class="owl-carousel">
<div class="item"><h4>Contact</h4></div>
<div class="item"><h4>Form</h4></div>
</div>
</div>
JQuery와 당신은 id
의 값을 복제 할 수 없습니다
.owlCarousel({
loop: true,
margin: 10,
nav: true,
dots:false,
items:1,
navContainer: '#navhere'
})
http://jsfiddle.net/vnpm1y06/226/에서 완벽하게 작동합니다. 네, 두 개의 슬라이더로 인해 두 개를 보여줍니다. 각 슬라이더에는 자체 탐색 기능이 있습니다. –
그렇습니다. 두 슬라이더에 대한 탐색은 첫 번째 "탐색"div에 저장됩니다. 그들은 각각 자신의 div에 있어야합니다. 일명 두 번째 div "navhere"는 비어 있으며 두 번째 슬라이드의 탐색이 표시되어야합니다. – Vlidurno
스크립트에서 navcontainer를 제거하고 CSS를 통해 위치를 관리하십시오. –