Please use id instead of name when implementing anchor points in HTML5_html5 tutorial tips
- WBOYOriginal
- 2016-05-16 15:48:422484browse
HTML5 has removed the name attribute. Please use id when implementing anchor points. Example effect: http://keleyi.com/keleyi/phtml/html5/9.htm
Supports Chrome, Firefox, IE8 and above browsers .
The following is the complete code:
HTML5 anchor point example--Ke Leyi< ;base target="_blank" />
Please scroll Move the page down
www.keleyi.com
< div style="background-color:Red; width:100%;height:150px;">Welcome
hi
keleyi.com
< div style="background-color:Fuchsia; width:100%;height:150px;">keleyi
keleyi.com
Keleyi
Ke Leyi monitors the scrolling pixels
keleyi.com
jquery
keleyi.com
Full code
HTML5 has removed the name attribute. When implementing anchor points, please use id
Go directly to the bottom of the page Example:
http://keleyi.com/keleyi/phtml/html5/9.htm#keleyifoot
Statement: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