<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>test</title> <meta name="description" content=""> <meta name="keywords" content=""> <link href="" rel="stylesheet"> </head> <body> <a href="#ct1">下一步</a> <div name="ct1" id="ct1" style="height:1000px;">123</div></li> </body> </html>
如图所示,当我点击下一步时会显示123,但是当锚点效果在浏览器中显示出来时,为什么会显示出我下一步骤中即将显示出来的内容呢?本人小白,求大神解答!万分感谢!
Eric1029