CSS3 IE 11 背景图像不出现在 chrome、edge、safari 中,只是不是 ie

标签 css internet-explorer

我的 CSS 是这样的:

body {
    background: url(images/Gabrielheroimage3.jpg);
    background-repeat: no-repeat;
    background-size: contain;
    max-height: 700px;
    max-width: 1300px;

}

尝试删除最大高度和宽度但没有帮助。还尝试了 background-image 而不是 background ,但这也没有帮助。我感谢任何建议!谢谢!

最佳答案

背景图片:url(images/Gabrielheroimage3.jpg);

关于CSS3 IE 11 背景图像不出现在 chrome、edge、safari 中,只是不是 ie,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38252891/

相关文章:

CSS 特异性 : Selector with ID doesn't override selector with class?

javascript - 如何修改类的一个元素而不用相同的 CSS 类打扰其余元素?

internet-explorer - IE11 document.cookie 不创建 cookie

javascript - 在 IE9 中打印 IFrame 文档

internet-explorer - window.history.back() 在 iframe 中重新加载 Internet Explorer 中的页面?

internet-explorer - font-awesome 在 IE 11 中不起作用,如果从 IE 安全选项中禁用字体下载

javascript - 第 N 个 child 使用 Jquery 而不是 CSS

.net - 将 CSS 类添加到 Html.BeginForm()

html - 带有 flex : 1 gets moved to a new line, 的列表元素内的文本有什么方法可以避免这种情况?

xml - 在 IE 中查看 XML 时如何禁用安全警告?