简体   繁体   English

锚标签在jquery滑块中不起作用

[英]Anchor tags not working in jquery slider

There is an image slider at the top of this page: 此页面顶部有一个图像滑块:

http://www.example.com/ http://www.example.com/

Each slide is wrapped in an anchor tag and is supposed to link to a post somewhere else on the site. 每张幻灯片都包裹在锚标签中,并应该链接到网站上其他位置的帖子。 However, the slides don't seem to be clickable and I can't figure out why. 但是,这些幻灯片似乎不可点击,我也不知道为什么。 My suspicion is that there must be some sort of z-index issue but hours of tinkering hasn't gotten me anywhere. 我的怀疑是肯定有某种z-index问题,但是经过数小时的修补并没有使我到处走。 Ideas? 有想法吗?

A few things I would have tried: 我会尝试的几件事:

  1. The a-tag should probably have its display css property set to block. A标签可能应该将其显示CSS属性设置为“阻止”。
  2. One of the slideshow containers has its z-index set to -1. 其中一个幻灯片放映容器的z索引设置为-1。 This could result in it's content effectively being covered by another element for click purposes. 这可能会导致其内容被另一个元素有效地覆盖以实现点击目的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM