在设计网页中,锚点滚动是不可或缺的,现在分享给大家,好好看看。
jq代码
为了好复制,插入整个demo源码
js锚点滚动效果 ul>li{float: left;margin: 10px ;}
.clearfix:after{display:block;clear:both;content:"";visibility:hidden;height:0}
.clearfix{zoom:1}
.step{width:80%;height:1300px;border:10pxsolidred;margin:0auto;}
#step1 #step2 #step3
step1
step2