图像滑块在 eBay 中无法正确显示
单击缩略图时图像显示在下方 10-20 像素。它在私人主机上工作正常,但在 eBay 上有这个问题。任何修复或帮助都非常感谢。谢谢
When a thumbnail is clicked the new image appears below by 10-20 pixels. It works fine on private host but on eBay has this issue. Any fix or help greatly appreciated. Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要展示您的代码。所有缩略图都丢失了。
控制台给出了 404 错误...
您也收到了一堆类似的错误。您似乎在脚本中使用相对路径,因此它会在 eBay 的目录中查找这些内容。我假设您自己托管这些组件,因此您需要使用完整的绝对路径,包括所有内容上的
http://yourServer.com/yourPath/
,以及您引用的所有内容资产。(顺便说一句,据我所知,我认为 eBay 不允许在其拍卖列表中使用任何脚本。)编辑:
自从发布我的答案后,链接到<一href="http://www.ebay.co.uk/itm/ws/eBayISAPI.dll?ViewItem&item=160653524585&ssPageName=STRK%3aMESE%3aIT#ht_520wt_1212" rel="nofollow">中引用的拍卖列表问题已更改。 现在完全不同的事情,不同的内容,不同的代码等等,在上面呈现我的评论已过时。
致OP:这是一种非常糟糕的做法,不仅这个问题和答案现在对未来的读者毫无用处,而且你完全浪费了我的时间。
看来OP是在我输入原始答案时编辑的,因此,没有原始问题的历史记录。 这是拍卖如我第一次回答时所示。
编辑2:
根据eBay的HTML和JavaScript 政策
You need to show your code. All the thumbail images are missing.
The console gives a 404 errors on them...
You are also getting a bunch of similar errors. It appears like you are using relative paths within your script so it's looking for these things within a directory on eBay. I assume you are hosting these components yourself so you need to use full, absolute paths including the
http://yourServer.com/yourPath/
on everything, all of your referenced assets.(As a side-note, AFAIK, I thought eBay did not allow any scripts within their auction listings.)EDIT:
Since posting my answer, the link to the auction listing referenced in the question has been changed. It's now a whole different thing, different content, different code, etc., rendering my comments above obsolete.
To the OP: This is a very bad practice, not only is this question and answer now useless to future readers, you've totally wasted my time.
It appears that the OP was edited while I was typing my original answer, therefore, there is no history of the original question. This is the auction as presented when I first answered.
EDIT 2:
As per eBay's HTML & JavaScript policy