开发者

HTML anchor #bottom, only going half-way down page

http://www.planet-tolkien.com/board/44/621/0/poll-suggestions

It's due to the multiple "bottom of the page" anchor links on each post to the anchor name at the bottom of the page. I tried to solve this by using a unique id and name for the attributes:

<a href="#bottom" id="4656" name="4656">

But this hasn't worked.

Suggestions?

P.S. Don't use the URL bar, yes that works. Visit the page and click on a link in a post that开发者_如何学Python says "Bottom of the page". This is where it isn't working.


Yes, the pound sign (#) denotes a css id and ids are only supposed to be used once. Although, when I entered it as part of the url, i.e. http://www.planet-tolkien.com/board/44/621/0/poll-suggestions#bottom it did bring me to the bottom of the page. I tested this in safari and firefox and worked fine.


The solution was to move the into the footer DIV, rather than outside it. I can't claim credit for this though, my friend Anton figured it out :)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜