Rog*_*tus 6 html css alignment footer
我是CSS的新手,并且已经查找了很多方法,但无法让页脚与底部对齐.有帮助吗?谢谢.
.footer {
position: bottom;
bottom: -10px;
height: 30px;
width: 100%;
background-color: #171717;
color: white;
}
Run Code Online (Sandbox Code Playgroud)
将位置更改为固定.
.footer {
position:fixed;
bottom:0px;
height:30px;
width:100%;
background-color:#171717;
color:white;
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
15235 次 |
| 最近记录: |