Use anchor links to jump in CSS pages

By setting the a tag, you can jump to the specified id element in the page.

<a href="#footer">footer</a>
<div id="header">header</div>
<div id="content">content</div>
<div id="footer">footer</div>
<a href="#header">header</a>
<a href="#content">content</a>

You can save it to the url, so that you will be located in this place when you visit again.

file:///D:/code/webstrom/flex/%E9%94%9A%E9%93%BE%E6%8E%A5.html#content

 

Although it conflicts with vue-router, the jump function can be used. Maybe the situation I tested is not very complicated. . .

But at least it's not possible to save page location via url. . . , if there is a redirect illegal route

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325111324&siteId=291194637