滚动页面作为视差滚动



我有这个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 代码。

你可以

使用 html 锚点

 <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>

相关内容

  • 没有找到相关文章

最新更新