修复 footer 显示位置错误的问题
This commit is contained in:
1 parent
d54a7bf818
commit
a66b755aa3
2 files changed
+15
-2
No files matched your search
@@ -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 {
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user