好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

CSS如何控制div固定于网页底部_html/css_WEB-ITnose

CSS如何控制div固定于网页底部:

网页设计中可能需要这样的效果,那就是将一个条幅放在网页的最底部,并且在网页滚动的时候能够穿过此条幅。

代码实例如下:

      蚂蚁部落  html, body {  padding:0px;  margin:0px;  height:100%}#main {  height:100%;  width:100%;  overflow:auto;}.neirong {  height:1000px;  width:20px;  background-color:green;  margin:0px auto;}#bottombar {  position:absolute;  width:100%;  height:30px;  line-height:30px;  text-align:center;  bottom:0px;  background-color:#999;  z-index:2;}   

其实我很长,往下使劲拉吧

查看更多关于CSS如何控制div固定于网页底部_html/css_WEB-ITnose的详细内容...

  阅读:39次