我创建了一个新的html页面,所有其他链接都正常,除了指向此页面的链接。单击Internet Explorer中的链接根本不执行任何操作,但如果我直接打开该文件,则会打开它。 Chrome中没有任何问题。
这里发生了什么?
<a class="m04" href="cariere.html"><strong>CARIERE</strong></a>
谢谢
编辑我认为问题出在页面本身,是什么让IE拒绝打开页面?
EDIT2 好的,这是cariere.html
:
`Content removed`
EDIT3 问题解决了,我在保存更改的同时进行了回滚,现在一切正常导航。即便对IE来说仍然很奇怪。
答案 0 :(得分:1)
You're not getting errors, IE is opening other links, and it works fine in Chrome... First glance, this sounds like an issue with the way that IE cached your website. However, I can't elaborate on further possibilities because you didn't provide us with much information or any code to investigate, so basic troubleshooting is the best answer as of right now. I'll update it again if you provide more information.
Try this:
Click the 'Privacy' tab and click 'Default'
Test it. If the above doesn't work, you can always click the 'Advanced' tab and click the 'Reset' button. I've seen IE do stranger things, so hopefully it's as simple as this.
As mentioned, you didn't provide us with much to work with. We're all happy to help you out, so if this doesn't work for you, please come back and post us more information/code so we can get this pinpointed. There are many things, code wise, that can cause undesired results, but we can't confirm that without seeing the code.
This has helped me out with various strange "IE bugs." I can't provide you with an explanation, but I'm sure a search could shine further light on this. It's at least worth trying considering how strange this bug is.
In your <head>
put:
<meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
答案 1 :(得分:0)
之前我遇到过这个问题,这是一个非常奇怪的问题:它在Firefox和Chrome中运行良好,但它在IE中并不稳定。有时它有效,但在大多数时候它只是不起作用。
问题是标签标记嵌入在 a 标记中,该链接仅在标记标记之间的填充区域中起作用一个标签。通过将标签标记更改为 span 标记,可以轻松修复此问题。
自:
<a href="www.google.com"><label>Learn More</label></a>
&#13;
要:
<a href="www.google.com"><span>Learn More</span></a>
&#13;