I am trying to give a background image to div using css. This is my css

.header {
    background: url("../images/header1.png") no-repeat scroll right 15px rgba(0, 0, 0, 0);
    height: 55px;
    padding: 5px 0 0;
    width: 100%;
}

This works fine on firefox & chrome even on IE9 & IE10 also but its not working in IE8 or older versions. I have googled & also refered this question but its not helping.

Background image not showing IE8

有帮助吗?

解决方案 2

rgba not supported in IE7/ IE8 http://css-tricks.com/rgba-browser-support/

其他提示

 .header
    {
    background: url("../images/header1.png");
    background-repeat:no-repeat;
    background-position:right 15px;
    height: 55px;
    padding: 5px 0 0;
    width: 100%;
    }
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top