如何在动态网址中使用HTML#锚点 [英] How to use HTML # anchor in a dynamic url
本文介绍了如何在动态网址中使用HTML#锚点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
< a 我想用#anchor链接到动态页面的一部分,如下所示: ?HREF = page.php文件ID = 3#部-名称> LINK< / A>
没有用。
解决方案
您只展示了一半的代码,所以我只能给出一个示例正确的做法:
< body>
< a name =top> < / A>
< a href =#top>
转至页首
< / a>
< / body>
I want to link to a section of a dynamic page using the # anchor, something like this:
<a href=page.php?id=3#section-name>LINK</a>
It didn't work. What is the right way to do it?
解决方案
You've only presented half of your code so I can only give a sample of the proper way to do it:
<body>
<a name="top"> </a>
<a href="#top">
Go To Top Of Page
</a>
</body>
这篇关于如何在动态网址中使用HTML#锚点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文