设置top值为""
if(sTop+wHeight>barTop+barHeight){
$('.bar').css({'position':'fixed','bottom':'0px','left':'0px','top':''});
}else{
$('.bar').css({'position':'absolute','top':barTop,'left':'0px'});
}
设置top值为""
if(sTop+wHeight>barTop+barHeight){
$('.bar').css({'position':'fixed','bottom':'0px','left':'0px','top':''});
}else{
$('.bar').css({'position':'absolute','top':barTop,'left':'0px'});
}