[英]Where does my footer go
I have made a site with Bootstrap and now I'm facing this problem that the footer that I just created does not show up at all somehow! 我已经用Bootstrap创建了一个站点,现在我面临着这个问题,即我刚刚创建的页脚根本无法显示!
Here's the footer html codes: 这是页脚html代码:
<div class="footer">
<div class="container-fluid">
<div class="topfooter">
<div class="row">
<div class="col-md-1"></div>
<div class="col-md-10 socails">
<ul>
<li><a href="default.asp">Home</a></li>
<li><a href="news.asp">News</a></li>
<li><a href="contact.asp">Contact</a></li>
<li><a href="about.asp">About</a></li>
</ul>
</div>
<div class="col-md-1"></div>
</div>
</div>
<div class="middlefooter">
<div class="row BKoodakBold">
<div class="col-md-3">
<h1 class="footerTitle">واحد امور مالی</h1>
<a class="footerPara">پیگیری سفارش</a></br>
<a class="footerPara">پیگیری سفارش</a></br>
<a class="footerPara">پیگیری سفارش</a></br>
<a class="footerPara">پیگیری سفارش</a></br>
<a class="footerPara">پیگیری سفارش</a></br>
</div>
<div class="col-md-3">
<h1 class="footerTitle">واحد امور مالی</h1>
<a class="footerPara">پیگیری سفارش</a></br>
<a class="footerPara">پیگیری سفارش</a></br>
<a class="footerPara">پیگیری سفارش</a></br>
<a class="footerPara">پیگیری سفارش</a></br>
<a class="footerPara">پیگیری سفارش</a></br>
</div>
<div class="col-md-3">
<h1 class="footerTitle">واحد امور مالی</h1>
<a class="footerPara">پیگیری سفارش</a></br>
<a class="footerPara">پیگیری سفارش</a></br>
<a class="footerPara">پیگیری سفارش</a></br>
<a class="footerPara">پیگیری سفارش</a></br>
<a class="footerPara">پیگیری سفارش</a></br>
</div>
<div class="col-md-3">
<h1 class="footerTitle">واحد امور مالی</h1>
<a class="footerPara">پیگیری سفارش</a></br>
<a class="footerPara">پیگیری سفارش</a></br>
<a class="footerPara">پیگیری سفارش</a></br>
<a class="footerPara">پیگیری سفارش</a></br>
<a class="footerPara">پیگیری سفارش</a></br>
</div>
</div>
</div>
<div class="bottomfooter">
<div class="row">
<div class="col-md-1"></div>
<div class="col-md-10 socails">
<ul>
<li><a href="default.asp">Home</a></li>
<li><a href="news.asp">News</a></li>
<li><a href="contact.asp">Contact</a></li>
<li><a href="about.asp">About</a></li>
</ul>
</div>
<div class="col-md-1"></div>
</div>
</div>
</div>
</div>
And the result I get, is this: 我得到的结果是:
So as you can see it does not show up correctly! 因此,您可以看到它无法正确显示! And this is also the css for this footer: 这也是此页脚的CSS:
.footer{
height:400px;
background-color:black;
}
.socials{
}
.socials ul {
list-style-type: none;
margin: 0;
padding: 0;
}
.socials ul li {
display: inline;
text-decoration:none;
}
.footerTitle{
font-size:20px;
}
.footerPara{
padding-right:3px;
}
.footerPara, .footerTitle{
text-align:right;
color:#fff;
}
So what am I doing wrong ? 那么我在做什么错呢? Why it does not appear correctly ? 为什么它不能正确显示?
Not that my footer is inside of a div
with id of content
with this settings: 并非我的页脚位于具有此设置的content
ID的div
内:
#content{
background-color:black;
width:100%;
position:absolute;
top:550px;
background:#ebebeb;
height:3800px;
overflow:hidden;
} }
You don't need to specify the height of #content
. 您无需指定#content
的高度。 Try changing height: 3800px
to height: auto
an see if that works. 尝试将height: 3800px
更改为height: auto
查看是否height: 3800px
。
The problem is that when you specified height with overflow: hidden
you have limited space for content, extra content will be hidden. 问题是,当您指定overflow: hidden
高度overflow: hidden
您的内容空间有限,多余的内容将被隐藏。
Also your #content
has duplicated background color, you probably want only one of this two background-color: black
and background: #ebebeb
. 同样,您的#content
具有重复的背景色,您可能只需要以下两种background-color: black
和background: #ebebeb
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.