我的背景图像出现在Chrome和Firefox,但不是在IE 8 我的网站是www.burodsin.com第一网页上的标志。背景图像不显示在IE,但会出现在Firefox
在CSS背景下,我加入
.bclass:link {
background-image: url('images/buroimagenew.jpg');
position: absolute;
width: 40px;
height: 97px;
display: block;
z-index:12;
}
我的背景图像出现在Chrome和Firefox,但不是在IE 8 我的网站是www.burodsin.com第一网页上的标志。背景图像不显示在IE,但会出现在Firefox
在CSS背景下,我加入
.bclass:link {
background-image: url('images/buroimagenew.jpg');
position: absolute;
width: 40px;
height: 97px;
display: block;
z-index:12;
}
在网页上,问题是,你正在定义repeat
性质no-repeat
上background-image
,这样
background-image: url('images/buroimagenew.jpg') no-repeat;
/*^This is NOT a background-image accepted value */
要么像
单独的属性background-image: url('images/buroimagenew.jpg');
background-repeat: no-repeat;
或写正确速记规则。
background: url('images/buroimagenew.jpg') no-repeat;
下面是不同的背景属性是:
background
background-image
background-repeat
background-color
background-clip
background-attachment
background-origin
background-position
因此,作为分离:
background-image: url('urlofyourimage.jpg');
background-repeat: no-repeat;
只有我在链接中看到的是BLACK !!!!!! – Starx 2012-03-18 09:04:15
的问题和网页上的代码是不同的。 – Starx 2012-03-18 09:14:44