为什么我的站点地图链接没有登陆到所有指定的锚点上?
我刚刚手动完成了 Dreamweaver 8 网站的站点地图:http://www.ggordontowerofbabel.co.cc 前两页很好,所有链接都正好落在我想要的位置。
然而,到了第三页,它们就停在了原地,但是一旦页面加载完毕,它就乱跳到页面的另一部分?只有当它被加载到服务器上供任何人访问时,这才是一个问题。然而,本地一切都很好,只有“MyMediaPage.htm#MyFilm”应用于链接,但一旦到达服务器,我添加完整的网址 http://www.ggordontowerofbabel.co.cc//MyMediaPage.htm#MyFilm 同样,服务器上的前 2 页一切正常,我正在使用相同的方法。
从 body 标签中删除代码后,它只起到了部分作用。然而,现在链接却落在下一个指定的锚点上,几乎是追赶的。因此,虽然它可能会短暂降落在目标上,但它仍然会射击上一个或下一个目标。请帮忙!!
I've just manually completed a sitemap for my dreamweaver 8 website: http://www.ggordontowerofbabel.co.cc The first 2 pages are fine, with all the links landing just at the spot I want them to.
However, on the 3rd page, they land on the spot, but as soon as the page is fully loaded, it jumps off indiscriminately to another part of the page? This is only a problem once it is loaded onto the server for anyone to access. However, all is fine locally, where only, "MyMediaPage.htm#MyFilm" is applied to the link, but once on the server, I add the full url http://www.ggordontowerofbabel.co.cc//MyMediaPage.htm#MyFilm
Again, all is fine on the first 2 pages on the server, and I'm using the same method.
After removing code from the body tag, it helped only partially. However, now the link lands on the next named anchor instead, almost as catch-up. So, while it may briefly land on its target, it still shoots onto the previous or next one. Please help!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
# 锚片段用于页面内的相对链接?或者我误解了这个问题? (您还可以考虑使用 sitemapper 工具来生成 HTML 站点地图?那么您会遇到同样的错误吗?)
The # anchor fragment is for relative links within a page? Or did I misunderstand the question? (You could also consider using a sitemapper tool to generate your HTML sitemaps? Do you get same error then?)