在IE浏览器中无法单击锚标记 [英] Anchor tag is not clickable in IE browser
本文介绍了在IE浏览器中无法单击锚标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在IE中无法点击锚标记,如果我右键单击并在新窗口中打开它正在运行。但它在Chrome中按预期工作。
< b>我尝试了什么:
< a id =hcaselinkname =hcaselinkstyle =display :inline-blocktarget =_ parentrunat =server>< label id =lblcasestyle =color:Bluerunat =server/>< / a>
Href =https://google.com我添加了它是c#asp.net的后端代码,如下所示
hcaselink.Attributes [href] =https://google.com;
解决方案
使用此方法:
hcaselink.HRef =https://google.com
而不是
hcaselink.Attributes [href] =https://google.com
Anchor tag is not clickable in IE,If i right click and open in new window it is working.but it is working as expected in Chrome.
What I have tried:
<a id="hcaselink" name="hcaselink" style="display:inline-block" target="_parent" runat="server"><label id="lblcase" style="color:Blue" runat="server"/></a>
Href="https://google.com" i have added it is the backend code of the c# asp.net like below
hcaselink.Attributes["href"] = "https://google.com";
解决方案
Use this method :
hcaselink.HRef = "https://google.com"
Instead of
hcaselink.Attributes["href"]= "https://google.com"
这篇关于在IE浏览器中无法单击锚标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文