Use a link to jump to a certain part of this page or another page (code example)

云罗郡主
Release: 2018-10-18 16:46:59
forward
4506 people have browsed it

What this article brings to you is about using a link to jump to a certain part of this page or another page (code example). It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you. Helps.

Jump to a certain part of this page

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<a href="#aaa">跳转至aaa处</a><br/>
<a name="aaa">我是aaa处</a>
<p>... ... ... ... ... ...</p>
<p>... ... ... ... ... ...</p>
<p>... ... ... ... ... ...</p>
<p>... ... ... ... ... ...</p>
<p>... ... ... ... ... ...</p>
<p>... ... ... ... ... ...</p>
<p>... ... ... ... ... ...</p>
<p>... ... ... ... ... ...</p>
<p>... ... ... ... ... ...</p>
<p>... ... ... ... ... ...</p>
<p>... ... ... ... ... ...</p>
<p>... ... ... ... ... ...</p>
<p>... ... ... ... ... ...</p>
<p>... ... ... ... ... ...</p>
<p>... ... ... ... ... ...</p>
<p>... ... ... ... ... ...</p>
<p>... ... ... ... ... ...</p>
<p>... ... ... ... ... ...</p>
</body>
</html>
注:1. 必须保证跳转到的部分其后的内容能够覆盖整个浏览器的高度否则无法看出效果。 
  2.<a href="#name">...</a>和<a name="name">...</a>必须配对使用。 
    3.也可将<a name="name">改为<a id="name">。
Copy after login

The above is a complete introduction to using a link to jump to a certain part (code example) of this page or another page. If If you want to know more about HTML video tutorial, please pay attention to the PHP Chinese website.

The above is the detailed content of Use a link to jump to a certain part of this page or another page (code example). For more information, please follow other related articles on the PHP Chinese website!

source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template