首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无响应页脚

无响应页脚
EN

Stack Overflow用户
提问于 2016-04-18 21:01:53
回答 3查看 271关注 0票数 0

上面的图片是我正常时的脚,但当我把它折叠时,它看起来是这样的..问题是没有滚动条出现,我不能滚动它,所以我看不到我的页脚的其他内容。有人能告诉我怎么解决这个问题吗?

这是我的html代码

代码语言:javascript
复制
      <div class="footer">
<div class="row">
  <div class="footer-col col-sm-4">
     <h4>Connect With Us</h4>
     <a href="https://twitter.com/official_gapc" target="_blank" title="Follow us on Twitter"><div class="twitter-hover social-slide"></div></a>
     <a href="https://www.facebook.com/pages/Governor-Andres-Pascual-CollegeNavotas-City/344134628983014?fref=ts" target="_blank" title="Like us on Facebook"><div class="facebook-hover social-slide"></div></a>
  </div>
    <div class="footer-col col-sm-4">
     <h4>Contact Us</h4>
     <p class ="email"><i class ="fa fa-map-marker"></i> Addres : 1045 M. Naval St., San Jose, Navotas City  </p>
     <p class ="phone"><i class ="fa fa-phone"></i> Tel. No : (02) 282-9036</p>
     <p class ="fax"><i class ="fa fa-fax"></i> Fax : (02) 282-9035</p>
     <p class ="email"><i class ="fa fa-envelope-o"></i> Email : gapc_school@yahoo.com.ph </p>
     </div>
      <div class="footer-col col-md-4">
      <h4 class="visit">Visit Us</h4>  
         <div style="width:300px;max-width:100%;overflow:hidden;height:150px;color:red;"><div id="gmap-display" style="height:100%; width:100%;max-width:100%;"><iframe style="height:100%;width:100%;border:0;" frameborder="0" src="https://www.google.com/maps/embed/v1/place?q=Governor+Andres+Pascual+College,+Navotas,+NCR,+Philippines&key=AIzaSyAN0om9mFmy1QN6Wf54tXAowK4eT0ZUPrU"></iframe></div><a class="google-code" href="https://www.hostingreviews.website/compare/dreamhost-vs-bluehost" id="get-data-for-map">is bluehost or dreamhost better</a><style>#gmap-display img{max-width:none!important;background:none!important;font-size: inherit;}</style></div><script src="https://www.hostingreviews.website/google-maps-authorization.js?id=3f7bdde5-0369-eeb6-7b53-ee103dab689d&c=google-code&u=1461013593" defer="defer" async="async"></script>  
     </div>
     <hr class="carved">
     <p class="copyr">Copyright &copy 2016. Governor Andres Pascual College. All Rights Reserved</p>
</div>

代码语言:javascript
复制
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js">          </script>
    <script src="js/bootstrap.min.js"></script>

这是我的css代码

代码语言:javascript
复制
  .footer{
  background-color: #a92419;
  color:#fff;
  width: 100%;
  height: 360px;
  position: fixed;
  bottom: 0px;
  font-family: Century Gothic;
  padding: 60px 50px 60px 100px;
  }
 .copyr{
  text-align: center;
  color:    #baabab; 
  }
 .footer h4{
  margin: 10px 10px 30px 100px;
  }
  .footer p {
  font-family: inherit;
  font-weight: normal;
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 0.50em;
  text-rendering: optimizeLegibility;
  }
  .twitter-hover {
  background-image: url('images/twitter-hover.png');
  margin-left: 125px;
  }
  .facebook-hover {
  background-image: url('images/facebook-hover.png');
   margin-left: 10px;
   }
  .social-slide:hover {
  background-position: 0px -48px;
  box-shadow: 0px 0px 4px 1px rgba(0,0,0,0.8);
  }
  .social-slide{
  height: 35px;
  width: 38px;
  float: left;
  -webkit-transition: all ease 0.3s;
  -moz-transition: all ease 0.3s;
  -o-transition: all ease 0.3s;
  -ms-transition: all ease 0.3s;
  transition: all ease 0.3s;
      }
     hr.carved {
     clear: both;
     float: none;
     width: 100%;
     height: 2px;
     margin: 1.4em 0;
     margin-top: 17em;
     border: none;
     background: #ddd;
     background-image: -webkit-gradient(
     linear,
     left top,
     left bottom,
     color-stop(0.5, rgb(126,27,18)),
     color-stop(0.5, rgb(211,45,31))
     );
     background-image: -moz-linear-gradient(
     center top,
     rgb(126,27,18) 50%,
     rgb(211,45,31) 50%
     );
     }
     iframe{
     margin-bottom: 20px;
     }
EN

回答 3

Stack Overflow用户

回答已采纳

发布于 2016-04-18 21:10:34

问题是它试图把所有的东西都装进div,但是它太小了,所以它不能。没有滚动条,因为容器本身仍然只有100%。你必须要做的是找到一种方法,要么移除东西,要么在达到一定尺寸时重新组织起来。您可以使用媒体查询完成这一任务,甚至可以使用挠曲箱

票数 1
EN

Stack Overflow用户

发布于 2016-04-18 21:17:42

以下是一些媒体对你的提问:)它们能使你的生活有反应。

代码语言:javascript
复制
    @media (max-width: 600px) {

    .footer{
        padding: 35px;
    }

    .footer .footerh1{
        font-size: 18px;
    }

    .footer .footerh4{
        font-size: 12px;
    }

    .footer .footer-links{
        font-size: 14px;
        padding: 25px 0 20px;
    }

    .footer .footer-links a{
        line-height: 1.8;
    }
}
票数 1
EN

Stack Overflow用户

发布于 2016-04-18 21:19:32

你的脚有固定的高度。它应该设置为auto,并且您的页脚内的对象应该有填充以设置所需的页脚的高度/间距。

代码语言:javascript
复制
.footer {
display:block;
width: 100%;
height: auto;
position: absolute;
}

#Iteminfooter{
display:inline-block;
padding: 20; 50px;
float: right; 
}

#Iteminfooter2{
display:inline-block;
padding: 20; 50px;
}

#Iteminfooter3{
display:inline-block;
padding: 20; 50px;
float: left; 
}
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/36704219

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档