0
我有這樣的平滑滾動的jQuery:Diffuculty與實現平滑滾動與金剛鸚鵡
$('a').click(function(){
$('html, body').animate({
scrollTop: $($(this).attr('href')).offset().top
}, 500);
return false;
});
我怎樣才能使其與window.location
按鈕工作?我卡住了。這裏的按鈕:
<button onClick="window.location='#services';" class="_button">services</button>
你可以修改該按鈕的HTML嗎? – 2015-02-24 11:40:59
html在那裏...? – 2015-02-24 11:46:17
我知道,我問你是否有能力*更改* HTML – 2015-02-24 11:46:47