html - 删除页脚底部的空白
问题描述
我尝试了所有方法来删除页脚后的空白,这里是我在 Css 中写的:
#page-container {
position: relative;
min-height: 100vh;
}
#content-wrap {
padding-bottom: 100px; /* Footer height */
}
#footer {
background-color: #3F729B;
bottom: 0;
position: absolute;
height:100px;
width: 100%;
color: black;
text-align:center;
padding: 0 30px;
}
这是在我的页面中:
<div id="page-container">
<div id="content-wrap">
<!-- all other page content -->
<footer id="footer" >
</footer>
</div>
</div>
解决方案
推荐阅读
- python - 如何使用数据框在python中传递变量
- java - 获取要在服务任务中使用的嵌入表单变量的值
- node.js - Firebase 管理员如何创建无密码登录的用户?
- react-native - 导航未定义
- wpf - 如何防止dragablz标签被用户重新排序?
- reactjs - React 方法不返回要显示的表数据
- angular - 带有延迟加载模块的Angular 8路由,子路由中的子路由可以跳过父路由以访问子路由
- javascript - 如何正确设置 Material-ui 中某些元素的颜色?
- mongodb - MongoDB 自定义 Power BI DirectQuery 连接器问题 - 无法将 Bigint 转换为整数
- python - 如何按特定列对空格分隔的文件进行排序