如果 URL 中存在 #,IE 会更改标题值
如果 URL 中存在“#”值,Internet Explorer 会将标题文本替换为 URL
重现步骤:
- 在 Internet Explorer 中,转到 www.store.apple.com/us,查看标题,它会显示“欢迎来到 Apple Store - Apple Store(US)”
- 将“#123”附加到 URL,因此新 URL 现在应为 http://www.store.apple.com/us#123
- 查看标题栏中的值,它将是 'http://www.store.apple.com/ us#123'
除了用 Javascript 剥离之外,还有其他方法可以克服这个问题吗?它会影响搜索引擎排名吗?
PS:apple.com 仅用于示例目的,此错误适用于任何网站。
If a '#' value is present in the URL, Internet explorer replaces the title text with the URL
Steps to Reproduce:
- In Internet Explorer, Go www.store.apple.com/us, have a look the title, it will say "Welcome to the Apple Store - Apple Store(U.S)"
- Append '#123' to the URL, so the new URL should will now be, http://www.store.apple.com/us#123
- See the value in the Title Bar, it will be 'http://www.store.apple.com/us#123'
Is there a way to overcome this apart from stripping it with Javascript and will it affect Search Engine Rank?
P.S: The apple.com is used just for example purpose, this bug holds good for any website.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您使用什么版本的 IE?
我尝试使用 IE8,窗口标题更改为显示 URL,但是选项卡中显示的标题仍然是
IE 中显示的内容不会对搜索引擎排名产生任何影响。
What version of IE are you using?
I tried with IE8, and the window title changes to show the URL, however the title shown in the tab is still the title specified in the <title> tag of the page.
What is displayed in IE won't have any effect on search engine ranking.