2011-06-03 20 views

回答

10

這是一個非常簡單的如何實現類似於您的示例的版本。如果你使用瀏覽器< IE7,你只需要使用JavaScript,否則簡單的CSS就可以做到。

Live Demo

#footer{ 
    bottom: 0px; 
    position: fixed; 
} 
1

給在div的固定位置。這樣的事情:

<div style="width:100%; position:fixed; bottom:0px; background-color:blue; height: 50px;"> 
Excellent footer content here 
</div> 
相關問題