我試圖讓頁腳底部保持固定的頁腳,並且只在鼠標移過時淡入,然後在鼠標未覆蓋時淡出,但我無法看到要得到它的工作:頁腳淡入然後出
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);
}
);