【求助】怎么弄一个div在页面底部?
css吧
全部回复
仅看楼主
level 1
_小施主 楼主
页面
div代码
<div class="bottom">
<a href="#" rel="nofollow">关于我们</a>|<a href="#" rel="nofollow">广告服务</a>|<a href="#" rel="nofollow">联系我们</a>|<a href="#" rel="nofollow">法律声明</a>|<a href="#" rel="nofollow">网站地图</a>|<a target="_blank" href="#">版权声明</a>|<a href="#" rel="nofollow">帮助中心</a><br />
版权所有 © 2012-2015 粤ICP备2012233303号
</div>
css代码
<style type="text/css">
.bottom{clear:both;margin:10px auto;text-align:center;padding:10px 0;line-height:25px;color:#666;border-top:#ddd 1px solid;}
.bottom a{margin:0 7px;color:#666;}
.bottom a:hover{color:#000;text-decoration:underline;}
</style>
-------------------------------切切---------------------------------------------
如果是加 position:fixed;bottom:0px
变成这样
2015年05月26日 15点05分 1
level 1
_小施主 楼主
[泪]来人啊,我后端的
2015年05月26日 15点05分 2
level 1
_小施主 楼主
[乖]好吧,大家都睡了,晚安
2015年05月26日 15点05分 3
level 1
_小施主 楼主
搞定了发现自己好菜,width: 100%; 撑起来就可以了[泪]
2015年05月26日 15点05分 4
撑起来然后设置放在最地下嘛?
2015年05月28日 06点05分
level 5
楼主好厉害,顶顶[大拇指]
2015年05月27日 12点05分 5
level 5
刚好自己也不会做,看了你的办法立即解决了!赞赞赞![真棒]
2015年05月28日 22点05分 6
level 1
直接用{ position:fixed;}定位到页面底部就行了
2015年05月29日 01点05分 7
1