Lien vers différents emplacements sur la même page

Cet exemple montre :

Cet exemple montre comment utiliser un lien pour accéder à une autre partie du document.

Exemple d'analyse :

<a href="#C4">Voir le chapitre 4</a>, ajoutez #C4 après le lien pour accéder à une autre partie de la partie du document.

Formation continue
||
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>php中文网(www.php.cn)</title> </head> <body> <p> <a href="#C4">查看章节 4</a> </p> <h2>章节 1</h2> <p>这边显示该章节的内容……</p> <h2>章节 2</h2> <p>这边显示该章节的内容……</p> <h2>章节 3</h2> <p>这边显示该章节的内容……</p> <h2><a id="C4">章节 4</a></h2> <p>这边显示该章节的内容……</p> <h2>章节 5</h2> <p>这边显示该章节的内容……</p> <h2>章节 6</h2> <p>这边显示该章节的内容……</p> <h2>章节 7</h2> <p>这边显示该章节的内容……</p> <h2>章节 8</h2> <p>这边显示该章节的内容……</p> <h2>章节 9</h2> <p>这边显示该章节的内容……</p> <h2>章节 10</h2> <p>这边显示该章节的内容……</p> <h2>章节 11</h2> <p>这边显示该章节的内容……</p> <h2>章节 12</h2> <p>这边显示该章节的内容……</p> <h2>章节 13</h2> <p>这边显示该章节的内容……</p> <h2>章节 14</h2> <p>这边显示该章节的内容……</p> <h2>章节 15</h2> <p>这边显示该章节的内容……</p> <h2>章节 16</h2> <p>这边显示该章节的内容……</p> <h2>章节 17</h2> <p>这边显示该章节的内容……</p> </body> </html>
soumettreRéinitialiser le code
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!