2013-06-01 56 views

回答

1
var t = $("#anchor-point").offset().top; 

$(document).scroll(function(){ 
    if($(this).scrollTop() > t) 
    { 
     $('#voice2').css({"border-bottom":"2px solid #f4f5f8"}); 
     $('#voice3').css({"border-bottom":"2px solid #2e375b"}); 
    } 
}); 

REFERENCE

編碼快樂:)

+0

很不錯的。謝謝!! –