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.
我在我的网站上使用这两个插件:jQuery 内容面板切换器和 Slidesjs 滑块。内容面板滑块在单击链接后切换内容,但在其中一个内容中我需要使用 Slidesjs 滑块。它在页面加载后工作,但是当用户更改内容时,slidesjs 就会消失。我不确定这是一个很好的描述,来这里看看实时预览:实时预览。
例如,尝试单击摄影,然后单击返回主页。
内容切换器正在破坏 slidesjs,因为它改变了 dom 结构。在此用例中,您不应使用切换器。反而:
display:none
fadeOut()
setTimeout
fadeOut
fadeIn()