为什么Internet Explorer不支持带有查询字符串和散列/锚点的书签? Firefox工作正常 [英] Why does Internet Explorer not support bookmarks with both a querystring and a hash/anchor? Firefox works properly
问题描述
当页面加载时,我正在使用锚点书签移动到页面的顶部,中间或底部。
EG:< a name =mid> ;< / a>< / code>< / p>
现在,当我简单地在我的网址中传递一个锚书签(#)时, IE和FF浏览器。
EG: http://.../Test.aspx#mid
但是,如果我在URL中传递相同的锚书签(#)以及任何查询字符串,那么它不在IE中工作。 FF工作正常。
EG: http://.../Test.aspx?a = b& c = d#mid
为什么不能用IE浏览器?
RFC3986显示它完全正常: foo://example.com:8042 / over / there?name = ferret#nose
I am using anchor-bookmarks to move to the top, middle or bottom of the page when the page loads.
EG: <a name="mid"></a>
Now, when I simply pass an anchor-bookmark(#) in my URL then it is working perfectly in both IE and FF browsers.
EG: http://.../Test.aspx#mid
But, if I pass the same anchor-bookmark(#) along with any querystring in my URL then its NOT WORKING in IE. FF works fine.
EG: http://.../Test.aspx?a=b&c=d#mid
WHY is it not working with IE?
Bug. RFC3986 shows it's perfectly OK: foo://example.com:8042/over/there?name=ferret#nose
这篇关于为什么Internet Explorer不支持带有查询字符串和散列/锚点的书签? Firefox工作正常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!