当前位置: 移动技术网 > IT编程>网页制作>CSS > CSS3 实现footer 固定在底部(无论页面多高始终在底部)

CSS3 实现footer 固定在底部(无论页面多高始终在底部)

2020年03月10日  | 移动技术网IT编程  | 我要评论

前言

把 footer 区固定在底部,无论页面高度多宽,它始终在底部不会变,就像移动端的菜单一样。

<!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>

总结

以上所述是小编给大家介绍的css3 实现footer 固定在底部(无论页面多高始终在底部),希望对大家有所帮助

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网