超链接在Internet Explorer上不可单击,如果使用URL.Action



我使用MVC ActionLink获取URL。它在Chrome中工作正常。但是在IE中,它甚至没有单击。我使用以下代码导航页面。

<a href="@Url.Action("GetHelpDocuments", "Document")">
            <span class="navsprite helplink"></span>
            <span>Help</span>

我在上述代码中找不到任何错误。但是请为此提供其他解决方案。

我使用localtion.href获取实际位置href

<a href="@Url.Action("GetHelpDocuments", "Document")" onclick='location.href = this.getAttribute("href")'> 
           <span class="navsprite helplink" ></span>
            <span>Help</span>

相关内容

最新更新