简体   繁体   English

为什么该锚链接在IE11中不起作用?

[英]Why doesn't this anchor link work in IE11?

What is stopping the following URL from working in IE11, but works in Chrome and Firefox? 是什么阻止了以下URL在IE11中起作用,但在Chrome和Firefox中起作用?

http://www.softwareconsole.com/Anchors/default.aspx?pageid=system_requirements&anchor=heading5 http://www.softwareconsole.com/Anchors/default.aspx?pageid=system_requirements&anchor=heading5

HTML: HTML:

<p>
<span class="heading"><a href="#heading5" name="heading5">Heading 5</a></span>
<br />
Nam pulvinar erat eget magna pharetra tincidunt. Sed lectus ...</p>

My guess would be the Ampersand (&) is giving you problems depending on the version of IE you are using. 我的猜测是,“&”号会根据您使用的IE版本给您带来问题。 Try converting your Ampersands to: 尝试将您的&符转换为:

&amp;

instead of 代替

&

so your URL would look like this: http://www.softwareconsole.com/Anchors/default.aspx?pageid=system_requirements&amp;anchor=heading5 因此您的网址应如下所示: http://www.softwareconsole.com/Anchors/default.aspx?pageid=system_requirements&amp;anchor=heading5 : http://www.softwareconsole.com/Anchors/default.aspx?pageid=system_requirements&amp;anchor=heading5

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM