gpt4 book ai didi

html - iPad 和 iPhone 中的 CSS 页脚问题

转载 作者:太空宇宙 更新时间:2023-11-04 14:04:02 24 4
gpt4 key购买 nike

我的底部有这个页脚,在桌面上看起来不错,但在 iphone 或 ipad 上,背景被截断了:

这是HTML

<div class="footerPowell">

<div class="footer-content">

<div class="footer-location">

<!--<h1>Locations</h1>-->
<ul>
<li>Address</li>
<li>Address</li>
<li>Address</li>
<li>Address</li>
</ul>

</div><!--footer-location-->

</div><!--footer-content-->

</div>

这是 CSS:

.footerPowell{
background-color:#000;
height:500px;
margin-top:-100px
}

.footer-content{
width:1000px;
margin:0 auto;
color:#FFF;
padding-top:130px;
}

.footer-location{
width: 100%;
text-align:center;
}

.footer-location h1{
font-size:20px;
padding-bottom:15px;
color:#b9b9b9;
font-family: 'gotham_htfbook';
}

.footer-location ul{
list-style:none;
}

.footer-location ul li{
font-family: 'gotham_htfbook';
color:#808080;
padding-bottom:3px;
font-size:16px;
display:inline-block;
padding-right:10px;
}

.footer-location ul li a{
color:#808080;
text-decoration:none;
}

最佳答案

不确定你所说的截止到底是什么意思,但你可能想试试这个

.footer-content{
width: 100%;
margin:0 auto;
color:#FFF;
padding-top:130px;
}

使用百分比作为宽度以保持 100% 宽度。

关于html - iPad 和 iPhone 中的 CSS 页脚问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21266870/

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