css怎样实现始终将footer牢固在底部
发布时间:09/01 来源:未知 浏览:
关键词:
目标:
把 footer 区牢固在底部,不管页面高度多宽,它始终在底部不会变,就像移动端的菜简单样。
(引荐教程:CSS入门教程)
实例:
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>document</title> <!-- css --> <style> #demo{ position: fixed; left: 0px; bottom: 0px; width: 100%; height: 50px; background-color: #eee; z-index: 9999; } </style> </head> <body> <footer id="demo">我是footer</footer> </body> </html>
相关视频教程引荐:css视频教程
以上就是css怎样实现始终将footer牢固在底部的具体内容,更多请关注百分百源码网其它相关文章!