跳转到网页中的特定位置

cdu*_*dub 0 html

我有这样的链接:

 <a class="faq_text_header_jump" href="#general_questions">General Questions</a><br>
  <a class="faq_text_header_jump" href="#how">How do i..</a><br>
  <a class="faq_text_header_jump" href="#once_you_book">Once you've booked lessons..</a>
Run Code Online (Sandbox Code Playgroud)

像这样的目标:

<div class="faq_text_section_header" id="how"><h2>How do I...?</h2></div>
Run Code Online (Sandbox Code Playgroud)

但我的第二和第三个链接不起作用.

请在此处查看示例:http://lessonshark.com/dev1/homes/faq

Rog*_*ger 6

HTML有一个解决方案.

使用

<a name="target">
Run Code Online (Sandbox Code Playgroud)

标记要跳转到的页面中的位置

<a href="page.html#target">
Run Code Online (Sandbox Code Playgroud)