修复 footer 显示位置错误的问题
This commit is contained in:
@@ -1,3 +1,16 @@
|
|||||||
|
html{
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
body{
|
||||||
|
height:100%; /*使内容高度和body一样*/
|
||||||
|
margin-bottom:-80px;/*向上缩减80像素,不至于footer超出屏幕可视范围*/
|
||||||
|
}
|
||||||
|
|
||||||
|
.main{
|
||||||
|
padding-bottom: 120px;
|
||||||
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
@@ -6,8 +19,7 @@ img {
|
|||||||
.footer {
|
.footer {
|
||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
position: absolute;
|
height: 80px
|
||||||
bottom: 30px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
label {
|
label {
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
@import url("global.css");
|
||||||
@import url("bootstrap/bootstrap.min.css");
|
@import url("bootstrap/bootstrap.min.css");
|
||||||
@import url("bootstrap/todc-bootstrap.min.css");
|
@import url("bootstrap/todc-bootstrap.min.css");
|
||||||
@import url("codeMirror/codemirror.css");
|
@import url("codeMirror/codemirror.css");
|
||||||
|
|||||||
Reference in New Issue
Block a user