html - 背景附件: fixed is not working in iPad

标签 html css background

我在 ipad 中使用此 css 按钮工作背景附件:已修复。 请帮助我。在链接下方

Link is here

.home #bottom-header {
    background-attachment: fixed !important;
    background-clip: border-box;
    background-color: rgb(255, 255, 255);
    background-image: url("images/hero_bg.jpg");
    background-origin: padding-box;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: 100% auto;
    height: 100%;
    position: relative;
    width: 100%;
}

最佳答案

这个过程对于移动浏览器上的渲染过程来说是相当昂贵的,所以它被禁用了。

查看这篇文章: How to replicate background-attachment fixed on iOS

关于html - 背景附件: fixed is not working in iPad,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31295953/

相关文章:

html - 有图案的图片有时会显示奇怪

javascript - 输入类型上的 getElementById.value 返回未定义

html - 带有背景图像的 ul 和左浮动的 li 元素

android - 为所有屏幕尺寸设置背景图像

javascript - 如何在一行中干燥我的 jQuery 代码

html - 将静态 HTML 设计转换为类似博客的风格,让人联想到杂志,并找到可行的 CSS 风格?

css - 指令问题 - 不捕获 innerHTML 文本

jquery - easy-pie-chart 零百分比​​呈现为点?

html - 当在 div 中设置背景图像时,我必须给出 div 的静态高度,否则它不会自动高度

安卓应用背景: using multiple images