Html uses the anchor to locate code instances and Instances
Html uses the anchor to locate code instances:
This topic describes how to use an anchor to locate a location. Using an anchor to locate a location is an inherent function of html. Of course, it is relatively simple and implements basic functions, but its functions are relatively simple, if you want to achieve smooth positioning, you can see the click Page animation method implemented by jquery to smoothly locate an element code section. The following code illustrates how html locates the anchor.
The Code is as follows:
<! DOCTYPE html>
The above code achieves the anchor positioning effect. The code is very simple. Set the href attribute value of link a to the id attribute value of the element to be located, but add # in front #.
Original address: http://www.51texiao.cn/HTML5jiaocheng/2015/0615/4385.html
The most original address is: http://www.softwhy.com/forum.php? Mod = viewthread & tid = 14094.