【问题标题】:Internet explorer breaks footer and yes I've tried the sticky footerInternet Explorer 打破了页脚,是的,我已经尝试过粘性页脚
【发布时间】:2015-07-02 12:22:38
【问题描述】:

正如标题所说,我在使用网站页脚时遇到问题,无论出于何种原因,我似乎都无法弄清楚页脚为什么会中断,我尝试了许多通过谷歌找到的粘性页脚选项但似乎没有真正起作用或完全抛弃我的代码。任何帮助将不胜感激,我仍在学习!

@import url("reset.css");

@font-face {
font-family: 'Maiandra';
src: url('fonts/MAIAN.TTF');
}

/* Static Header */

#header {
background-color: #676767;
height: 35px;
font-family: Maiandra;
color: #FFFFFF;
font-size: 12px;
margin: 0px auto;
text-align: center

}

/* Body */

html {      
position: relative;
min-height: 100%; 
}

body {
font-family: Maiandra;
font-size: 15px;
color: #333;
margin: 0 0 60px;
}

p {
padding: 10px;
}

p strong {
font-weight: bold;
}

#wrapper {
margin: 0 auto;
width: 800px;
overflow: visible;
height: 100%
}



/* Content Area */

.content {
float: right;
background: #FFFFFF;
width: 600px;
overflow: sroll;
padding-bottom: 100px;
}


.leftcolumn { 
background: #ffffff;
width: 175px;
float: left;
}

.rightcolumn {
width: 175px;
float: right;

}

img {
display: block;
margin-left: auto;
margin-right: auto;
padding-top: 2px;
}

h1 {
font-family: Maiandra
font-weight: bold;
font-size: 20px;
padding-top: 15px;
padding-left: 10px;

}

h2 {
font-family: Maiandra;
font-weight: bold;
font-size: 20px;
padding-top: 15px;
padding-left: 10px;
}

h3 {
font-family: Maiandra;
font-weight: bold;
font-size: 20px;
padding-top: 15px;
padding-left: 10px;
}

h4 {
font-family: Maiandra;
font-weight: bold;
font-size: 20px;
padding-top: 15px;
padding-left: 10px;
}

h6 {
font-family: Maiandra;
font-weight: bold;
font-size: 15px;
padding-top: 15px;
padding-left: 10px;
}



 /* Static Footer */

.footer {
position: absolute;
left: 0;
bottom: 0;
height: 60px;
width: 100%; 
background: #E8E8E8;
text-align: center;
font-family: Maiandra;
color: #000000;
font-size: 12px;
border-style: solid;
border-top: 1px solid #7F7D7D;
overflow: auto;
}

.footer p{
margin-top: 5px;
height: 10px;
}

【问题讨论】:

    标签: css internet-explorer footer sticky


    【解决方案1】:

    我居然找到了答案!

    将此添加到我的 HTML..

    <!--<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">-->
    <!--<!DOCTYPE HTML>-->
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-02-23
      • 2013-07-09
      • 1970-01-01
      • 2014-01-08
      • 2012-04-08
      • 1970-01-01
      • 1970-01-01
      • 2016-02-20
      相关资源
      最近更新 更多