Prettyphoto 在第 1 页水平网站的页面开头加载
我目前正在将 PrettyPhoto 实现到一个水平的 1page 网站中: http://www.basenharald.nl/3d(点击我正在谈论的部分的照片和视频关于)
在某种程度上,脚本是有效的。 如果您单击第一张照片(仅链接的一张照片),您会注意到正在发生一些事情。 实际发生的情况是,带有照片的叠加层加载在页面的开头(向左滚动以开始查看它)
我怎样才能使图像在当前位置显示为叠加层?
脚本可以在 http://www.basenharald.nl/3d/js/scripts 找到。 js 但它被缩小了(由于某种原因,未压缩的版本无法下载),
将不胜感激
I am currently implementing PrettyPhoto into a horizontal 1page website:
http://www.basenharald.nl/3d (click foto & video for the section i am talking about)
In a way the script works.
If you click the first photo (only one that is linked) you will notice that something is happening.
What actually is happening is that the overlay with photo loads at the beginning of the page (scroll wayyy left to start to see it)
How can i make it so that the image will show at the current location as overlay?
Script can be found at http://www.basenharald.nl/3d/js/scripts.js but it is minified (for some reason the uncompressed version was not available for download)
Help would be appreciated
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我自己通过简单地添加这行 css 找到了答案:
我想在这里为其他人回答它会很好
Found the answer myself by simply adding this line of css:
Thought it would be nice to answer it here for others
您好,我在这个问题上可以为您提供更多帮助。
虽然您解决了使正确的内容出现在正确的位置的问题,但页面底部仍然有一个水平滚动条。我假设您并不真正想要这个,因为它看起来很难看,并且您想要的导航是页脚中的八个链接,它们使用 javascript 将页面滚动到正确的屏幕。
要摆脱仍然留下的水平滚动条,您所要做的就是添加以下样式:
希望这有助于最终确定您的解决方案。
Hi I have additional help for you on this issue.
While you solved the problem of making the right content appear at the right place, you still have a horizontal scrollbar at the bottom of the page. I assume you don't really want this, since it looks ugly and your intended navigation is the eight links in your footer that use javascript to scroll the page to the correct screen.
All you have to do to get rid of the horizontal scrollbar that's still left is add the following style:
Hope this helps finalize your solution.