gpt4 book ai didi

twitter-bootstrap - Bootstrap - 页脚
    未在移动屏幕上对齐?

转载 作者:行者123 更新时间:2023-11-28 03:28:48 25 4
gpt4 key购买 nike

我在页脚中有一个在桌面上显示正常的页脚,但在移动设备上它在屏幕右侧对齐。谁能弄清楚如何解决它?谢谢

    <footer class="footer">
<div class="container">
<div class="row">
<div style="float:none;margin:0 auto;" id="toplist" class="col-md-12 col-xs-3 text-center">
<ul >
<a style="color:white;" href="https://example.com/"><li id="first" style="list-style:none;display: inline;">HOME</li></a>
<a style="color:white;" href="https://example.com/service"><li style="list-style:none;display: inline;padding-left:30px;">SERVICE</li></a>
<a style="color:white;" href="https://example.com/examples"><li style="list-style:none;display: inline;padding-left:30px;">EXAMPLES</li></a>
<a style="color:white;" href="https://example.com/order"><li style="list-style:none;display: inline;padding-left:30px;">ORDER</li></a>
<a style="color:white;" href="https://example.com/contact"><li style="list-style:none;display: inline;padding-left:30px;">CONTACT</li></a>
</ul>
</div>
<div id="hello" class="col-md-12 col-xs-9 text-center">
© 2017 site.com
</div>
</div>
</div>
</div>
</footer>

最佳答案

尝试跟随,

桌面:

enter image description here

手机:

enter image description here

<footer class="footer">
<div class="container">
<div class="row">
<!--removed classes-->
<div style="float:none;margin:0 auto;" id="toplist">
<ul>
<a style="color:white;" href="https://example.com/">
<li id="first" style="list-style:none;display: inline;">HOME</li>
</a>
<a style="color:white;" href="https://example.com/service">
<li style="list-style:none;display: inline;padding-left:30px;">SERVICE</li>
</a>
<a style="color:white;" href="https://example.com/examples">
<li style="list-style:none;display: inline;padding-left:30px;">EXAMPLES</li>
</a>
<a style="color:white;" href="https://example.com/order">
<li style="list-style:none;display: inline;padding-left:30px;">ORDER</li>
</a>
<a style="color:white;" href="https://example.com/contact">
<li style="list-style:none;display: inline;padding-left:30px;">CONTACT</li>
</a>
</ul>
</div>
</div>
<!--added new <div>-->
<div class="row">
<div id="hello" class="col-md-12 col-xs-9 text-center">
© 2017 site.com
</div>
<!--added </div>-->
</div>
</div>
<!--</div>-->
</footer>

关于twitter-bootstrap - Bootstrap - 页脚 <ul> 未在移动屏幕上对齐?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44851031/

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