html - Anchor tag not working in IE -
I have a simple anchor tag in my page that works with IE, Chrome, Safari and Firefox besides IE11 Are there.
Based on the various comments I have tried to do everything from the performance: block; To specify the text within the anchor tag
Here's my code:
& lt; Div id = "top" style = "display: block;" & Gt; & Amp; Nbsp; ; & Lt; / Div & gt; & Lt; Section class = "price-wrapper" & gt; & Lt; Div class = "content" & gt; & Lt; Div class = "left the price" & gt;
you & lt; A name = "top" & gt; & Lt should be used; / A & gt; As an anchor, then link it to: & lt; A href = "#top" & gt; Go to the top & lt; / A & gt; .
Note that you must first set the name attribute of the anchor tag, not the id as you do in your example on the devil.
Full example, tested in IE 11.0.9600.174 9 and working as a purpose:
& lt; Html & gt; & Lt; Body & gt; & Lt; One name = "top" & gt; & Lt; / A & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; A href = "#up" & gt; Click & lt; / A & gt; & Lt; / Body & gt; & Lt; / Html & gt;
Comments
Post a Comment