繁体   English   中英

页脚不响应

[英]Not responsive footer

在此处输入图片说明

上面的图片是正常时的页脚,但是当我将其折叠时,它看起来像这样。.问题是没有滚动条出现并且我无法滚动它,所以我看不到页脚的其他内容。 有人可以告诉我如何解决此问题吗? 在此处输入图片说明

这是我的HTML代码

      <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>

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js">          </script>
    <script src="js/bootstrap.min.js"></script>

这是我的CSS代码

  .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;
     }

问题是它试图将所有内容都放入div,但是它变得太小了,所以不能。 没有滚动条,因为容器本身仍然只有100%。 您需要做的是找到一种方法,在达到一定大小时将其删除或重新组织。 您可以通过媒体查询甚至使用flexbox实现

以下是一些针对您的媒体需求:)他们使生活变得敏感

    @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;
    }
}

页脚的高度固定。 应将其设置为auto,而页脚内部的对象应具有填充物,以设置所需的页脚高度/间距。

.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; 
}

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM