我有这个html标签
<a class="drop1" href="#div3" ><span>Services</span></a>
<div id="div1"> --- Some Code To be executed --- </div>
<div id="div2"> --- Some Code To be executed --- </div>
<div id="div3"> --- Some Code To be executed --- </div>
问题我的问题是,当我点击链接页面时,应该向下滚动视差滚动。建议我简单的CSS代码。
答案 0 :(得分:0)
您可以使用html anchor
<a class="drop1" id="here" href="#div3" ><span>Services</span></a>
<a name="div1"> --- Some Code To be executed --- </a>
<a name="div2"> --- Some Code To be executed --- </a>
<a name="div3"> --- Some Code To be executed --- </a>