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

标签 html ios css iphone ipad

我的底部有这个页脚,在桌面上看起来不错,但在 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/

相关文章:

ios - 检查系统是否可以响应 iOS 上给定的 URL 方案

javascript - 如何防止include bootstrap-combined.min.css 后表格样式改变?

python - Css 背景图像, Tornado 提供的图像

html - 在 CSS 中创建一个奇怪的阴影效果

javascript - 无法读取 null 的属性 'clientHeight' - 工作 JSfiddle 教程在其他地方不起作用?

javascript - Highchart js条形图标签左对齐

javascript - 迭代 Meteor Blaze 中的对象

ios - Objective-C 中的单元测试私有(private)类

ios - UINavigationBar TitleView 带副标题

php - 在动态情况下将按钮分配给相应的图像