2010-07-07 100 views
0

我正在引用從snipplr

$('html, body').animate({scrollTop:0}, 'slow'); 

的代碼,我發現其實我需要使用$('html')$('body')不工作, $('html, body')似乎多餘?

回答

0

根據this blog post(更新4),這是因爲html適用於標準模式下的IE,而body適用於怪癖模式。