jscrollpane 画廊截掉最后一张图片
我是一名网页设计师,帮助新客户更改现有网站上水平滚动图库中的一些照片。她提到她一直有一个问题,就是画廊中的最后一张照片并不总是出现。如果刷新页面,它会显示,但在页面最初加载时不会显示。有时最后一张照片完全丢失,有时它会显示一小部分,但除非我们刷新,否则其余部分都会被切断。
我对水平 jscrollpane 画廊没有经验。我一直尝试使用 Control+K 并将代码粘贴到本文的正文中供您查看,但出现错误。如果您需要查看实际情况,请回复,我会将网址发送给您。预先感谢您的任何帮助!
I am a web designer helping a new client change out some photos in a horizontal scroll gallery on an existing web site. She mentioned she's always had a problem with the last photos in her gallery not always showing up. If you refresh the page, it shows up but not when the page initially loads. Sometimes the last photo is missing completely, other times it'll show a small strip of it but the rest is cut off unless we refresh.
I have no experience with horizontal jscrollpane galleries. I keep trying to use Control+K and paste the code in the body of this post for you to see but I get an error. If it's something you need to see in action, please be kind enough to respond and I will send you the url. Thanks in advance for any help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
确实需要,但我愿意打赌,某个地方你的数字比应有的数字少 1。如果你有类似 var[n] n 的偏移量为 0。如果你将 5 张图片放入一个数组中,这意味着什么。最后一张图片作为图片[4]而不是图片[5]访问,因为数组从0开始计数。但是,如果在某个地方它获取的数组长度将为5,因为长度从1开始计数。
请发布链接,以便我们可以看到代码。
do need but im willing to bet that somewhere you have a number that is 1 less then it should be. if you have something like var[n] n has an offset of 0. what that means if you put 5 pictures into an array. the last picture is accessed as picture[4] and not picture[5] because arrays start counting at 0. however if somewhere its getting array length that will be 5 because length starts counting at 1.
please post link so we can see the code.