【问题标题】:CSS footer issue in iPad and iPhoneiPad 和 iPhone 中的 CSS 页脚问题
【发布时间】:2014-01-21 19:03:48
【问题描述】:

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

【问题讨论】:

    标签: html ios css iphone ipad


    【解决方案1】:

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

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

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

    【讨论】:

    • 不,那没有用,在 ipad 或 iphone 上查看 powellgroupconstruction.com,你会看到我的页脚被截断了。
    • 问题,您希望页脚在iphone/ipad 中与桌面一样显示吗?或者您希望元素适合 iphone/ipad 的屏幕?如果是这种情况,您可以使用width: 1000px; 到.footerPowell 类。
    • width: 1024px; 我的意思是。
    猜你喜欢
    • 1970-01-01
    • 2013-02-21
    • 1970-01-01
    • 2020-11-11
    • 2013-03-17
    • 2023-03-27
    • 2012-03-11
    • 1970-01-01
    相关资源
    最近更新 更多