css方法div固定在网页底部

css

.bottom{width:100%;height:40px;background:#ededed;float:left;margin-bottom:0px;position:fixed;bottom:0;}/*重点后两句*/


body

<div class="bottom">
<p>网页底部</p>
</div>

 

posted @ 2015-11-23 21:43  爱吃饼干小卡牌  阅读(263)  评论(0编辑  收藏  举报