简体   繁体   English

灯箱在页面底部显示图像

[英]Lightbox shows image at the bottom of the page

I am using Lightbox in order to display images in bigger size in a website. 我正在使用Lightbox,以便在网站中以更大的尺寸显示图像。 Lately, I realized it is working in some pages ( http://ipd2004.es/tornillos-para-protesis-anguladas-tpa ) but it is not working in one specific page ( http://ipd2004.es/producto/hexagono-externo-325 ). 最近,我意识到它可以在某些页面上工作( http://ipd2004.es/tornillos-para-protesis-anguladas-tpa ),但是它不能在特定页面上工作( http://ipd2004.es/producto/hexagono -externo-325 )。 Neither this one nor any of the other product displayed in the left sidebar. 左侧栏中没有显示此产品或任何其他产品。

In this case, it enlarges the height of the page, and displays the image at the bottom of it, without creating any of the common popup window to display the image and keeping the focus at the top of the page, so at the eyes of the user, the image is not expanded. 在这种情况下,它会放大页面的高度,并在页面的底部显示图像,而无需创建任何通用的弹出窗口来显示图像并将焦点保持在页面的顶部,因此,用户,图像不会展开。 Curious is, if I keep clicking, it keeps enlarging the page height, and the image stays at the bottom of it. 奇怪的是,如果我不断单击,它会不断放大页面高度,并且图像停留在其底部。

I checked and I am using the same JS calls in both pages, the one working and the one not. 我检查了一下,然后在两个页面中都使用了相同的JS调用,一个正在工作,一个没有。 So what am I doing wrong? 那我在做什么错?

Please help me out. 请帮帮我。

Did you check the browser console? 您是否检查了浏览器控制台? The page where it is not working, an error is displayed. 该页面不起作用,显示错误。 Check below image 查看下图

在此处输入图片说明

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

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