【发布时间】:2019-12-02 03:49:25
【问题描述】:
在我的网站here 中,我使用了背景图片作为<body style="background: url(http://www.monsoonmalabar.com/assets/jum1.jpg) no-repeat center center fixed;"> 的正文
它没有显示在移动 chrome 浏览器中。我试过下面的代码,
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
height: 100%;
min-height: 100%;
z-index: -1;
-webkit-transform: translateZ(0);
}
仍然没有在移动版 chrome 中显示。有什么解决方法吗?
【问题讨论】:
-
请在此处发布您的 HTML 和 CSS。一旦你修复了你的网站,这个问题对未来的访问者将毫无用处。请阅读:How to create a Minimal, Complete, and Verifiable example
-
我的问题中有 html 和 css
-
HTML 在哪里?我只看到 CSS 的一个非常小的 sn-p。这没有帮助。
标签: css google-chrome responsive-design background-image