修复 footer 显示位置错误的问题

This commit is contained in:
virusdefender 2015-08-07 17:11:20 +08:00
parent d54a7bf818
commit a66b755aa3
2 changed files with 15 additions and 2 deletions

View File

@ -1,3 +1,16 @@
html{
height: 100%;
}
body{
height:100%; /*使内容高度和body一样*/
margin-bottom:-80px;/*向上缩减80像素不至于footer超出屏幕可视范围*/
}
.main{
padding-bottom: 120px;
}
img {
max-width: 100%;
height: auto;
@ -6,8 +19,7 @@ img {
.footer {
left: 0;
right: 0;
position: absolute;
bottom: 30px;
height: 80px
}
label {

View File

@ -1,3 +1,4 @@
@import url("global.css");
@import url("bootstrap/bootstrap.min.css");
@import url("bootstrap/todc-bootstrap.min.css");
@import url("codeMirror/codemirror.css");