gpt4 book ai didi

CSS 整页背景图像在 IE8 中不起作用

转载 作者:行者123 更新时间:2023-11-28 12:15:20 25 4
gpt4 key购买 nike

我正在使用以下 CSS 代码作为整页背景。它在除 IE8 之外的所有主要浏览器中都可以正常工作。我该如何为 IE 修复它?

CSS 代码:

body {    
background: url(../images/bodyback.gif) no-repeat center center fixed !important;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
font-family: Ubuntu,Helvetica;
}

谢谢。

最佳答案

在您的浏览器中检查此代码..它在所有浏览器中对我来说都工作正常..

 <html>
<head>
</head>
<body style="
background: url('http://upload.wikimedia.org/wikipedia/commons/e/ec/Happy_smiley_face.png') no-repeat center center fixed !important;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
font-family: Ubuntu,Helvetica;
">

hi am working fine every where
</body>

关于CSS 整页背景图像在 IE8 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19216963/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com