Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我正在尝试从 CSS 下拉菜单中的一个子菜单中获取链接,以将我带到 jquery 滑块中幻灯片 2 上的 iframe。
这是该网站的链接:www.thorendahl.no
所以我想要的是,当您单击“om thorendahl”下的“历史”时,它的作用与单击“om thorendahl”时相同(跳转到幻灯片 2,但在 iframe 中打开不同的 html 页面显示向上)
任何人都可以帮助我吗?
将 ID 更改#slide-jump2为 a class,这样它就可以重复使用。
#slide-jump2
class
然后更新你jQuery的指向class而不是ID
jQuery
ID
$(".slide-jump2").click(function(){ $('#slider1').anythingSlider(2); });