繁体   English   中英

基础页脚不是整个页面宽度

[英]Foundation footer is not full page width

我已经使用Foundation 5创建了一个网站,但是我的一些页面页脚无法填充页面宽度时遇到了一些麻烦。 其他页面工作正常,并且页脚完美填充页面。 任何帮助,将不胜感激。

这是我遇到问题的页面之一的页脚。

<footer class="footer">
   <div class="row">
      <div class="small-12 medium-6 large-5 columns">
         <div class="logo">
            <a href="index.html"><img src="img/logo.png" /></a>
         </div>
         <p class="footer-links">
            <a href="index.html">Home</a>
            <a href="aboutus.html">About</a>
            <a href="staff.html">Staff</a>
            <a href="comingsoon.html">Online Giving</a>
            <a href="http://vimeo.com/firstag">Sermon Videos</a>
            <a href="contactus.html">Contact</a>
         </p>
         <p class="copywrite">Copywrite © 2015 First Assembly of God, Lincolnton</p>
      </div>
      <div class="small-12 medium-6 large-4 columns">
         <ul class="contact">
            <li>
               <p><i class="fi-marker"></i>328 May Avenue<br>P.O. Box 457<br>Lincolnton, Georgia 30817</p>
            </li>
            <li>
               <p><i class="fi-telephone"></i>Phone | 706-359-7237<br>FAX | 706-359-6638</p>
            </li>
            <li>
               <p><i class="fi-mail"></i>office@firstaglincolnton.org</p>
            </li>
         </ul>
      </div>
      <div class="small-12 medium-12 large-3 columns">
         <p class="about">CONNECT WITH US</p>
         <p class="about subheader">Please visit our social media accounts to keep up with current events.</p>
         <ul class="inline-list social">
            <a href="http://twowhoagree.blogspot.com/"><i class="fi-social-blogger"></i></a>
            <a href="http://vimeo.com/firstag"><i class="fi-social-vimeo"></i></a>
            <a href="https://twitter.com/FirstAGofLC"><i class="fi-social-twitter"></i></a>
            <a href="https://www.facebook.com/pages/First-Assembly-of-God-Lincolnton/169771389824660"><i class="fi-social-facebook"></i></a>
         </ul>
      </div>
   </div>
</footer>

添加此类以具有全宽行:

.full-width {
   width: 100%;
   margin-left: auto;
   margin-right: auto;
   max-width: initial;
}

然后将footer与第一个div合并,并添加full-width类:

<footer class="footer">
   <div class="row">

   [...]

   </div>
</footer>

<footer class="row footer full-width">

[...]

</footer>

工作示例: CodePen链接

暂无
暂无

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

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