我在對齊頁腳時遇到問題。在移動版權部分不居中。在ipad下它的腳鏈以下。我希望它在ipad和移動視圖的中心位置,而在網絡上它將位於左側,而右側的腳鏈位於同一行。我使用的是引導如何使用引導程序使頁腳響應
.copyright
\t {
\t \t overflow: hidden;
\t \t background: #128cbf \t ; \t
\t \t float: left;
\t }
\t
\t .copyright p
\t {
\t \t letter-spacing: 0.1em;
\t \t font-size: 0.50em;
\t \t color: #ffffff;
\t \t font-weight: 300;
\t }
\t
\t
\t .footerlinks{
\t \t float: right;
\t }
\t .footerlinks, .footerlinks a
\t {
\t \t letter-spacing: 1px;
\t \t text-decoration: none;
\t \t text-transform: uppercase;
\t \t font-size: 0.5em;
\t \t color: #ffffff;
\t \t padding: 0 5px;
\t \t font-weight: 200;
\t }
\t
/* Tabled Portrait */
@media screen and (max-width: 768px) {
#primary { width:100%; }
#secondary { width:100%; margin:0; border:none; }
\t .footerlinks { text-align: center; font-size: 1.5em; padding: 0 20px;}
\t .copyright { font-size: 1em; }
}
\t <div class="row">
\t <div class="footerlinks text-center .col-sm-6 .col-md-5 .col-lg-6">
\t \t \t <p><span><a href="#">text</a></span>·<a href="#">text</a>·<a href="#">text</a>·<a href="#">text</a>·<a href="#">text</a>·<a href="#">text</a>·<a href="#">text</a></p>
\t \t </div>
\t \t <div class="copyright .col-sm-6 .col-md-5 .col-md-offset-2 .col-lg-6 .col-lg-offset-0">
\t \t \t <p>© Copyright · All Rights Reserved</p>
\t \t </div>
\t \t </div>
關閉您的浮動移動設備,並在'copyright' div上設置'text-align:center' – Lee