导航箭头不起作用--它们是不可点击的。这是基于WordPress -我们没有使用插件,因为这是一个定制的作业。在页的一半左右的白色部分的底部看到它:
http://foster.gw.sandbox.uconnectlabs.com/
当用户单击导航箭头时,我会感到非常高兴的是,当用户单击导航箭头时,会让帖子从一个滚动到另一个。
有些事情要注意:
HTML:
<div class="posting-wrapper owl-carousel owl-theme owl-loaded">
<div class="owl-stage-outer">
<div class="owl-stage" style="transform: translate3d(0px, 0px, 0px); transition: all 0s ease 0s; width: 1220px;">
<div class="owl-item active" style="width: 406.667px; margin-right: 0px;">
<div class="owl-item active" style="width: 406.667px; margin-right: 0px;">
<div class="owl-item active" style="width: 406.667px; margin-right: 0px;">
</div>
</div>
<div class="owl-controls">
<div class="owl-nav">
<div class="icon-angle-left nav-prev" style=""></div>
<div class="icon-angle-right nav-next" style=""></div>
</div>
<div class="owl-dots" style="">
</div>
</div>jQuery:
if (jQuery(".posting-wrapper .post").length > 2){ // If it detects more than two entities, do the following...
jQuery(".posting-wrapper").addClass('owl-carousel');
jQuery(".owl-carousel").owlCarousel({
nav: true,
navText: ['', ''],
navClass: [ 'icon-angle-left nav-prev', 'icon-angle-right nav-next' ]
})
}我在jQuery代码中注意到,这些属性被设置为"nav“和"navText”等,它们看起来像猫头鹰旋转木马使用的缩写版本--导航,navigationText。当我将这些属性更改为非简略版本时,会发生奇怪的事情(比如导航不会出现.算了吧)。
我想设置它的人可能使用了他们自己的课程,等等,但是.嗯。不知道它对导航有什么影响。
发布于 2015-12-01 05:04:32
那么,当有三个以上的帖子,他们应该滚动?我只能在你的包装器..owl阶段看到3个帖子。里面还应该有更多吗?也许在你的PHP中,你把自己限制在3个帖子上?
https://stackoverflow.com/questions/34010247
复制相似问题