gpt4 book ai didi

html - 页脚看起来不像我想要的。 Bootstrap

转载 作者:行者123 更新时间:2023-11-28 05:37:20 24 4
gpt4 key购买 nike

我在网站上遇到页脚问题。这有点奇怪,因为我从来没有遇到过页脚问题。

我想将页脚放置得与菜单完全一样,我使用的是 Bootstrap,所以我使用的是列,但它不起作用。我不知道为什么页脚上的元素之间的空间不同(所有元素都有相同的列数),而且它不从菜单开始的地方开始。

这是代码:

HTML:

    <div class="container"> <!--el container creo que hacía que los círculos se viesen más peques-->
<nav class="navbar navbar-default navbar-fixed-top menupropio">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>

<a href="index.html"><img class="logo_menu img-responsive" src="images/logo_peque.png" alt="logo home"/></a>


</div>
<div id="navbar" class="navbar-collapse collapse">
<div class="secciones">
<ul class="nav navbar-nav" style="border-bottom:0px">
<!--<li class="active"><a href="#">Home</a></li>-->

<li><a href="kontakt.html" class="head-nav-button nav_graphicdesign">Kontakt</a></li>
<li><a href="#valik" class="head-nav-button nav_photography">Valik üle 20 aasta jooksul tehtud töödest</a></li> <!--todo los trabajos juntos -->
<li><a href="#valik" class="head-nav-button nav_photography">Logod</a></li> <!--en esta pagina van todos los logos-->
<li><a href="#valik" class="head-nav-button nav_photography">Trükised ja muu</a></li> <!--todo lo que no sean logos-->

</ul>
</div>
</div><!--/.nav-collapse -->
</nav>




<!--work designs starts-->
<section class="row center-block text-center">
<div class="col-xs-6 col-sm-6 col-md-3">
<div class="rings">
<a href="res_publica.html"><img class="img-responsive img-circle" src="images/res_publica_valimiskampaania_kujundus_thumbnail.jpg" alt="Res Publica valimiskampaania"/>
<span>Res Publica valimiskampaania</span>
</a>
</div>
</div>

<div class="col-xs-6 col-sm-6 col-md-3">
<div class="rings">
<a href="ajakiri_lofo.html"><img src="images/lofo_loodusfotoajakiri.jpg" class="img-responsive img-circle" alt="Ajakiri LoFo"/>
<span>Ajakiri LoFo</span>
</a>
</div>
</div>

<div class="col-xs-6 col-sm-6 col-md-3">
<div class="rings">
<a href="kataloogid.html"><img src="images/kataloogid.jpg" class="img-responsive img-circle" alt="Kataloogid"/>
<span>Kataloogid</span>
</a>
</div>
</div>

<div class="col-xs-6 col-sm-6 col-md-3">
<div class="rings">
<a href="hansab_logo.html"><img src="images/hansab_logo.jpg" class="img-responsive img-circle" alt="Hansab logo"/>
<span>Hansab logo</span>
</a>
</div>
</div>

<div class="col-xs-6 col-sm-6 col-md-3">
<div class="rings">
<a href="hotelli_sildid.html"><img src="images/hotelli_do_not disturb_silt.jpg" class="img-responsive img-circle" alt="Hotelli sildid"/>
<span>Hotelli sildid</span>
</a>
</div>
</div>

<div class="col-xs-6 col-sm-6 col-md-3">
<div class="rings">
<a href="mappkaaned.html"><img src="images/mappkaaned.jpg" class="img-responsive img-circle" alt="Mappkaaned"/>
<span>Mappkaaned</span>
</a>
</div>
</div>

<div class="col-xs-6 col-sm-6 col-md-3">
<div class="rings">
<a href="seinakalender.html"><img src="images/seinakalender.jpg" class="img-responsive img-circle" alt="Seinakalender"/>
<span>Seinakalender</span>
</a>
</div>
</div>

<div class="col-xs-6 col-sm-6 col-md-3">
<div class="rings">
<a href="ajakiri_psyk.fi.html"><img src="images/ajakiri_psyk_fi.jpg" class="img-responsive img-circle" alt="Ajakiri Psyk.fi"/>
<span>Ajakiri Psyk.fi</span>
</a>
</div>
</div>

</section>

</div> <!--container-->


<footer>
<div class="footer">
<div>
<div class="col-md-offset-4 col-sm-5 col-md-1 col-lg-1">
<p>Kiige RB OÜ</p>
</div>
<div class="col-sm-5 col-md-1 col-lg-1">
<a target="_blank" href="mailto:kiige@kiige.ee"><p>kiige@kiige.ee</p></a>
</div>
<div class="col-sm-5 col-md-1 col-lg-1">
<p>+(372) 50 20 506</p>
</div>
<div class="col-sm-5 col-md-1 col-lg-1">
<p>Tuleme hea meelega teile külla!</p>
</div>
</div>
</div>
</footer>

和 CSS:

footer{
margin-top:0px;
color: black;
text-align: center;
font-size: 0.9em;
}

如果你想看一下网站,这是临时链接:http://clients.sabrinacouto.com/kiige/

有谁知道怎么解决吗?

非常感谢!

最佳答案

您的所有部分似乎都使用“行”

<section class="row center-block text-centre">

但是,您的页脚没有围绕您的列的行来抵消它添加的间距。 Col 总是在两侧增加一个额外的间距。如果您有多个列,该行将取消该间距。

关于html - 页脚看起来不像我想要的。 Bootstrap ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38115668/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com