简体   繁体   English

Slimbox-悬停不起作用,未产生关闭按钮

[英]Slimbox - hover not working, close button not produced

I have some small issues with the Slimbox 2 plugin ( http://www.digitalia.be/software/slimbox2 ) for WordPress. 我在WordPress的Slimbox 2插件( http://www.digitalia.be/software/slimbox2 )上遇到了一些小问题。

You can see that the left and right links are produced inside the live edtiro, however the hover is not working so they never show up. 您会看到左右链接是在实时edtiro内部生成的,但是悬停功能不起作用,因此它们永远不会出现。

The close button code is not produced at all. 完全不产生关闭按钮代码。

I have tried to force the left and right graphics on the non hover, and added the close code in the appropriate place in a live editor: 我试图将左右图形强制置于非悬停状态,并在实时编辑器的适当位置添加了关闭代码:

#lbPrevLink {background:transparent url(../images/prev.gif) no-repeat 0 15%;}
#lbNextLink {background:transparent url(../images/next.gif) no-repeat 0 15%;}

<a id="lbCloseLink" href="#"></a>

Just to make sure the CSS was correct and it was not an issue with the images or something. 只是为了确保CSS正确,并且图像或其他内容不是问题。 All show up, so I had a look in the jQuery code, which I am not very familiar with but from what I can see it should produce the close button code at least, I was thinking the hover might be an issue with something being in front of it, however have not been able to confirm or fix that. 全部显示出来,所以我看了一下我不太熟悉的jQuery代码,但是据我所知,它至少应该产生关闭按钮代码,我当时认为悬停可能是一个问题,原因是它的前面,但是无法确认或解决该问题。

So now I am thinking there is some type of conflict going on, but usually errors in the console clears that up for me with jQuery related issues. 因此,现在我正在考虑发生某种类型的冲突,但是通常控制台中的错误会通过jQuery相关问题为我解决。

This is the site in question (just click on one of the images): http://www.thekula.com/collection/ 这是有问题的网站(只需单击其中一张图像): http : //www.thekula.com/collection/

Would appreciate some feedback/help or any guidance on how to move further with this particular issue. 希望获得一些反馈/帮助或有关如何进一步解决此特定问题的任何指导。

Many thanks 非常感谢

Fixed it, if anyone else comes with this problem go here and theres a fix for slimbox2.js https://code.google.com/p/slimbox/issues/detail?id=36 修复了此问题,如果还有其他人遇到此问题,请转到此处,并修复了slimbox2.js https://code.google.com/p/slimbox/issues/detail?id=36

Basically happens because of an old jQuery version included with Slimbox which needs 1.9 or higher I believe. 基本上是因为Slimbox随附了一个旧的jQuery版本,我认为它需要1.9或更高版本。

The Issue: 问题:

When I activate slimbox, I expect the window to be darkened with a normally lighted picture showing next and prev tabs and a close button at the bottom. 当我激活slimbox时,我期望窗口变暗,并且正常显示的图片显示下一个和上一个选项卡,并在底部显示一个关闭按钮。 Instead I see the picture and window darkened, no navigation or close links. 相反,我看到图片和窗口变暗,没有导航或关闭链接。 Clicking anywhere on the window removes the picture and lightens the window. 单击窗口上的任意位置将删除图片并使窗口变亮。

Fix: 固定:

Update jQuery or download the new slimbox2.js in the link provided. 更新jQuery或在提供的链接中下载新的slimbox2.js。

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

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