开发者

ie disregards anchors

开发者 https://www.devze.com 2023-01-13 01:19 出处:网络
I have an anchor on my webpage: <a name=\"here\"></a> and I link to it as usual:http://mysite.com/myp开发者_如何学运维age.aspx#here

I have an anchor on my webpage:

<a name="here"></a>

and I link to it as usual: http://mysite.com/myp开发者_如何学运维age.aspx#here

Which works just fine in FF but for some reason it doesn't scroll to the anchor in internet explorer.

What now? What cunning hack do I need to employ to solve this mystery of the ages? (Darn that ie browser)


If it's an empty anchor shouldn't it be < a name="here" /> or more correctly < a id="here" name="here />

0

精彩评论

暂无评论...
验证码 换一张
取 消