我的HTML中有这样的内容:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Stackoverflow help please</title>
</head>
<body>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<div id="scrollhere">Scroll here!</div>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
</body>
</html>
当我打开页面时:http://example.com/index.html#scrollhere它会滚动到此元素,但我不能顺利滚动,并为此元素添加类。我怎样才能做到这一点?非常感谢。