html - 是否可以在 HTML/CSS 中将页脚框居中?
问题描述
我已经创建了一个 HTML/CSS 网站,但是我遇到了一个问题,我不知道如何解决它。所以,我希望页脚根据网站的中心居中,但我不知道如何制作。有人可以帮助我吗?
文件:https ://github.com/TrainyBIG/help 网站:https ://trainybig.github.io/help/
解决方案
#footer {
margin: 0px auto;
padding-bottom: 60px;
width: 850px;
}
#footer .social {
float: left;
}
#footer .social ul {
list-style: none;
margin: 10px 0px 0px;
padding: 0px;
}
#footer .social li {
float: left;
margin-right: 5px;
}
#footer .social img {
border: 0px;
}
#footer .copyright {
color: #fff;
float: left;
line-height: 32px;
margin-left: 200px;
margin-top: 10px;
text-align: center;
}
#footer .resize {
float: right;
width: 400px;
}
推荐阅读
- java - 如何在 RxJava 中获得多重响应?
- python - Python 3 如何访问套接字客户端地址?
- php - 文件上传时通知用户
- android - Android Room 数据库 ViewModel 不反映同步插入的数据
- python - Django:向管理通用视图添加简单按钮
- javascript - 如何在 jquery 中动态获取 UL 和 LI 值
- json - JSONDecodeError:期望值第 1 行第 1 列(字符 0)
- xpath - 使用机器人框架查找具有“选定”属性的选项标签
- python - 将 matplotlib 饼图标签旋转 90 度
- dpdk - Mellanox ConnectX-3 不支持 DPDK 数据包分段?