hover效果优化
parent
5e0d051636
commit
0f5806d5d9
755
css/style.css
755
css/style.css
File diff suppressed because it is too large
Load Diff
|
@ -4,7 +4,7 @@ $(function(){
|
||||||
$('.header').addClass('header-white');
|
$('.header').addClass('header-white');
|
||||||
}else{
|
}else{
|
||||||
$(window).scroll(function(){
|
$(window).scroll(function(){
|
||||||
var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
|
var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
|
||||||
if(scrollTop > 10){
|
if(scrollTop > 10){
|
||||||
$('.header').addClass('header-white');
|
$('.header').addClass('header-white');
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue