原文: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