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.
我想制作一个滑块,它可以自动交换图像,也可以悬停在下面的链接上,比如在 Flipkart.com 中。
参考网站: flipkart
使用 Cycle2
http://jquery.malsup.com/cycle2
并使用按钮上的 goto 命令移动到特定幻灯片。
http://jquery.malsup.com/cycle2/api/
这不是 CSS 问题。这是一个 JavaScript 问题。去这里并按照说明进行操作。
http://www.wikihow.com/Make-a-JavaScript-Image-Rollover
一个很好的资源是 jQuery 网站或使用 Google 或 Bing 搜索引擎。输入字符串应该是 JavaScript 图像悬停或 jQuery 图像悬停。