我试图让页脚底部保持固定的页脚,并且只在鼠标移过时淡入,然后在鼠标未覆盖时淡出,但我无法看到要得到它的工作:页脚淡入然后出
HTML
<footer>
Footer stuff
</footer>
CSS:
footer {
position: fixed;
bottom: 0px;
display: none;
background: #000;
width: 100%;
height: 50px;
color: #fff
}
Jquery
$("footer").hover(
function(){
$(this).fadeIn(100);
},
function(){
$(this).fadeOut(100);
}
);