【问题标题】:Background images will not resize on iPhone and iPad. Nothing has worked背景图像不会在 iPhone 和 iPad 上调整大小。没有任何工作
【发布时间】:2017-03-30 04:52:47
【问题描述】:

这就是我认为问题所在。

如果我错了,请告诉我。

/* Home Style */
#tf-home{
    background: url(../img/kristen11.jpg);
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #cfcfcf;
}

【问题讨论】:

    标签: ios css iphone resize


    【解决方案1】:

    试试

    background-attachment: scroll;

    而不是固定为ios,特别是iphone和ipad与background-attachment: fixed有问题

    【讨论】:

      猜你喜欢
      • 2014-04-04
      • 1970-01-01
      • 2017-01-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-09-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多