2014-05-22 42 views
0

我有我的cssIE7IE8的CSS问题上的Internet Explorer 7的XHTML代码和8

问题我米使用下面的代码为我的输入框,但背景图像无法显示 上Internet Explorer 7和8.图像显示在所有其他浏览器上。属性的

.search input[type="submit"] { 
    background: url(../images/search_button.png) no-repeat scroll 0 0 rgba(0, 0, 0, 0); 
    border: 0 none; 
    float: right; 
    height: 31px; 
    margin-left: 10px; 
    margin-top: 6px; 
    width: 40px; 
} 

回答

0

一个未知/错值使得整个财产invalide

IE 7和8不知道rgba所以整个background不适用。

为了解决这个问题,你可以拆分移动rgbabackground-color

.search input[type="submit"] { 
    background: url(../images/search_button.png) no-repeat scroll 0 0; 
    background-color: rgba(0, 0, 0, 0); 
    border: 0 none; 
    float: right; 
    height: 31px; 
    margin-left: 10px; 
    margin-top: 6px; 
    width: 40px; 
}