如何让封面照片出现在 iPhone Safari 上
How do I make the cover photo appear on iPhone Safari
不会出现封面照片的网站是here。
此错误对于任何 iOS 设备上的 Safari 都存在,但适用于 Mac 上的 Safari。
这是CSS:
.bg-img {
/* The image used */
background: url("../images/background.jpeg") 0 0;
background-size: auto;
-webkit-background-size: auto;
background-color: rgba(41, 39, 34, 0.50);
max-width: 100%;
}
HTML 只是其中引用 CSS 的部分:
<section id="home" class="home bg-img parralax fix">
问题出在下面 HTML 中的 parralax
。
<section id="home" class="home bg-img parralax fix">
这干扰了 bg-img
因此它不显示图像的原因。
不会出现封面照片的网站是here。
此错误对于任何 iOS 设备上的 Safari 都存在,但适用于 Mac 上的 Safari。
这是CSS:
.bg-img {
/* The image used */
background: url("../images/background.jpeg") 0 0;
background-size: auto;
-webkit-background-size: auto;
background-color: rgba(41, 39, 34, 0.50);
max-width: 100%;
}
HTML 只是其中引用 CSS 的部分:
<section id="home" class="home bg-img parralax fix">
问题出在下面 HTML 中的 parralax
。
<section id="home" class="home bg-img parralax fix">
这干扰了 bg-img
因此它不显示图像的原因。