[英]<a href=“..”> doesn't work at first click but works at second click in FF, in IE works fine
I have 我有
<td class="TableContent">
<bean:message key="image.arrow.link" />
<a href="#Link"><bean:message key="text.linkinfo"/></a><br>
</td>
and 和
<a name="Link"><bean:message key="text.linkinfo"/></a>
When I first click on the link in FF the page just reloads and when clicking again after this it goes to where it should. 当我第一次单击FF中的链接时,页面会重新加载,然后在此之后再次单击时,它将转到应有的位置。
Any ideas how can I fix this? 任何想法我该如何解决?
It seems there is a problem with using base tag and relative href in my case. 在我的情况下,使用基本标记和相对href似乎存在问题。 I fixed the problem on all browsers (IE, FF, Chrome, Safari) using the entire link address.
我已使用整个链接地址在所有浏览器(IE,FF,Chrome,Safari)上解决了该问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.