原文:jquery操作滚动条滚动到指定元素位置 scrollTop

.brand t a .bind click ,function if this .attr title var toChar this .attr title else var toChar this .attr title 取得元素并滑动到当前元素 var t a .brand m t name toChar .offset html,body .animate scrollTop:t a. ...

2013-11-29 16:25 1 29048 推荐指数:

查看详情

div 中的滚动条 滚动到指定元素位置

var mainContainer = $('.ulbox'),//父级容器 scrollToContainer = mainContainer.find('.redbg');//指定的class mainContainer.animate({ scrollTop ...

Sat Apr 20 05:26:00 CST 2019 0 4372
jQ 操作滚动条滚动到指定位置

jQ:scrollTop() 方法设置或返回被选元素的垂直滚动条位置, $(selector).scrollTop(position) position:规定以像素为单位的垂直滚动条位置。 ...

Mon Nov 11 21:58:00 CST 2019 0 1762
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM