笔记

添加css样式:$(this).css("background-color","#FFFFBB");
移除css样式:$(this).css("background-color","");或者$(this).removeAttr("style"),因为上一步其实是在标签里
添加了:style="background-color: rgb(255, 255, 187);"属性。

1,回到页面顶部:

$('#back-top a').click(function () {
$('body,html').animate({
scrollTop: 0
}, 800);
return false;
});

原文地址:https://www.cnblogs.com/ymy124/p/3885749.html