首页 > 代码库 > 滚动条位置

滚动条位置

 var container = $(‘.option‘),
                    scrollTo = $(".checktype").children("li").eq(highlightindex);

            container.scrollTop(
                    scrollTo.offset().top - container.offset().top + container.scrollTop()
            );