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.
这是幻灯片代码的链接。 http://jsfiddle.net/K2JBg/24/ 此滑块代码在 chrome 和 firefox 中工作正常,但最后一张图像丢失,左侧部分在 ie7/8 怪癖模式下查看时不合适
我认为你需要在它到达左侧位置 -1200px 后进行检查,因为在最后一张图像之后,如果你一直按下按钮,它的左侧值会不断从 -1200 减少到 -1500 等等。因此您可以在达到左侧 -1200 像素后禁用该按钮或获取第一张图像。因为它在 ie 7/8 对我来说工作正常。