链接到同一个页面的不同位置

  1. <html>
  2.  
  3. <body>
  4.  
  5. <p>
  6. <a href="#C4">查看 Chapter 4。</a>
  7. </p>
  8.  
  9. <h2>Chapter 1</h2>
  10. <p>This chapter explains ba bla bla</p>
  11.  
  12. <h2>Chapter 2</h2>
  13. <p>This chapter explains ba bla bla</p>
  14.  
  15. <h2>Chapter 3</h2>
  16. <p>This chapter explains ba bla bla</p>
  17.  
  18. <h2><a name="C4">Chapter 4</a></h2>
  19. <p>This chapter explains ba bla bla</p>
  20.  
  21. <h2>Chapter 5</h2>
  22. <p>This chapter explains ba bla bla</p>
  23.  
  24. <h2>Chapter 6</h2>
  25. <p>This chapter explains ba bla bla</p>
  26.  
  27. <h2>Chapter 7</h2>
  28. <p>This chapter explains ba bla bla</p>
  29.  
  30. <h2>Chapter 8</h2>
  31. <p>This chapter explains ba bla bla</p>
  32.  
  33. <h2>Chapter 9</h2>
  34. <p>This chapter explains ba bla bla</p>
  35.  
  36. <h2>Chapter 10</h2>
  37. <p>This chapter explains ba bla bla</p>
  38.  
  39. <h2>Chapter 11</h2>
  40. <p>This chapter explains ba bla bla</p>
  41.  
  42. <h2>Chapter 12</h2>
  43. <p>This chapter explains ba bla bla</p>
  44.  
  45. <h2>Chapter 13</h2>
  46. <p>This chapter explains ba bla bla</p>
  47.  
  48. <h2>Chapter 14</h2>
  49. <p>This chapter explains ba bla bla</p>
  50.  
  51. <h2>Chapter 15</h2>
  52. <p>This chapter explains ba bla bla</p>
  53.  
  54. <h2>Chapter 16</h2>
  55. <p>This chapter explains ba bla bla</p>
  56.  
  57. <h2>Chapter 17</h2>
  58. <p>This chapter explains ba bla bla</p>
  59.  
  60. </body>
  61. </html>