<a href="#ct1">跳转到词条1</a>
<a href="#ct2">跳转到词条2</a>
<br>
<div id="ct1" style="height:1000px;">词条1</div>
<div id="ct2">词条2</div>
底下定好容器的id,在a的href中用#+id,就可以实现跳转了。
html页面实现指定位置的跳转
转载本文章为转载内容,我们尊重原作者对文章享有的著作权。如有内容错误或侵权问题,欢迎原作者联系我们进行内容更正或删除文章。
下一篇:jsp 局部刷新
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
html从指定位置跳转到指定位置
html实现从任意位置跳转到指定位置
html 前端 a标签 示例代码 其他