使用链接重定向到页面的特定部分 [英] Redirect to a specific part of the page with a link
本文介绍了使用链接重定向到页面的特定部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是我从另一个页面到特定页面的链接.
This is my link to the specific page from another page.
<a href="http://test.com/#test"
这是我要显示的页面的一部分,但是它不起作用...
and this is my part of page I want to display but it does not work...
<div id="test"><h4>Title of test</h4></div>
我正在使用WordPress,会导致问题吗?
I am using WordPress, could it cause the problem?
推荐答案
更改此内容:
<div id="test">
<h4>
Title of test
</h4>
</div>
对此...
<a name="test">
<h4>
Title of test
</h4>
</a>
您应该可以使用以下链接到它:
You should be able to link to it with this:
<a href="http://test.com/test-page#test">Test</a>
这篇关于使用链接重定向到页面的特定部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文