如何重定向到页面的特定部分?
我有这个问题:我的网站有一个大徽标,它填满了常见分辨率的所有屏幕,很难理解当用户单击菜单时内容实际上正在改变(因为页面上的内容太低)。我的问题是,是否可以进行包含页面中特定扇区的重定向,而不是常见的重定向?
I have this problem: my website have a big logo which full all the screen for common resolutions, which is hard to understand that the content is actually changing when the user clicks in a menu (because the content is to low on the page). My question is, is it possible to, instead of common redirects, do a redirect which include a specific sector in a page?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
理论上,您可以在 URL 中使用锚点 () (例如 http://www.domain.tld/page1#某些)跳转到网站的特定部分,但我会建议您更改网站的布局和设计,以直接向访问者展示内容。当您的内容位于“非首屏”时,您会失去大量访问者。当使用锚点或 Javascript 跳转到“正确”的位置时,您仍然会失去人员,因为他们会因为浏览器的跳转而感到困惑。也许您的首页使用一个模板,所有其他页面使用另一个模板,以实现不同的设计。 :-)
In theory you can use anchors () in your URL (like http://www.domain.tld/page1#something) to jump to a specific part of your website, but I would give you the advice to change the layout and design of your website to show your visitors the content directly. You loose enourmous amounts of visitors when your content is "below the fold". When using anchors or Javascript to jump to the "right" position, you will still loose people, since they get confused because of the browser jumping around. Maybe use one template for your frontpage and another for all other pages to achieve the different designs. :-)