在div上单击以浏览ul [英] Navigate through a ul with clicks on a div

查看:119
本文介绍了在div上单击以浏览ul的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请先查看以下内容:这是我要编辑的 JSFiddle

Please take a look at this first: This is my JSFiddle to edit

我需要在左边放两个div,在右边放一个,它们将按住箭头(如下所示: imageLeft ),所以当我单击一个div的左侧或右侧,它会相应地浏览ul. 请考虑到它们可能是两个以上的列表元素.

I need to put two div one to the left, one to the right, they will hold arrows (like this ones: imageRight, imageLeft), so when I click on one div left or right, it navigates through the ul accordingly. Please take in consideration that they could be more than two list elements.

看起来很简单,但我一直做不到,也找不到合适的例子.

Seems easy, but I haven't been able to do it, nor find the right example.

推荐答案

好的,现在我有了解决方案...

ok, now I have the solution...

我最终使用了名为尴尬的展示的插件,它很棒

I end up using a plugin called Awkward Showcase, which is awesome.

在这个问题中您可以找到最终的解决方法配置完全符合我的需求.您可以根据需要在此处添加一些评论.

In this question you can find how it got it's final configuration to match exactly what I wanted. You can add some comments there if you like.

Solution: JSFiddle

这篇关于在div上单击以浏览ul的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆