2016-05-17 59 views
-1

如何使用<h4>作为停止页面滚动的锚点?让HTML元素充当停止滚动的锚点

即当我滚动到<h4>时,您无法向下滚动。

+1

您的意思是手动滚动或编程滚动? –

+1

那么,你想在'href =“”'部分使用? – hmd

+1

问题不清楚。请以正确的方式询问。同时显示你迄今为止所尝试的内容。 – Shrabanee

回答

0

您可以添加CSS类cursor属性:

h4 { 
 
    cursor: pointer; /*<----this will make all the h4 elements to have hand cursor. */ 
 
}
<h4>Acting as anchor with pointer cursor.</h4>