2010-12-14 101 views
0

I have a simplehtml部分跳轉<a name="something"> more than once?

<a name="top"></a> 

and another link:

<a href="#top">Back to Top of Page</a> 

it works but after the first time the url turns to:

www.site.com/#top 

and it doesn't work after a user uses it one time. How can I make it so it will work multiple times?

+1

「它不工作」 - _what_不起作用?你期望什麼工作? – Oded 2010-12-14 17:32:15

+0

焦點話題:您不需要使用具有名稱的'a'標記,而是可以引用元素的「id」。它有助於減少散佈在頁面上的雜項標籤的數量。 – zzzzBov 2010-12-14 18:49:36

回答

0

I've seen this before. Can you test in different browsers and see if behavior is consistent? Try restarting browser, also.