2013-02-01 30 views

回答

3

使用RGB給背景色&透明度

background-color: rgba(0, 0, 0, 0.7); 
    /* For IE 5.5 - 7*/ 
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000); 
    /* For IE 8*/ 
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000)"; 

DEMO

檢查的詳細解釋here

+0

非常感謝您Sowmya,也很會遵循烏爾博客 –

+0

@satindersingh快樂:) – Sowmya

1

使用RGBA背景色,而不是不透明度。

MainHeader { 
position:relative; 
top:0px; 
height:50px; 
width:1000px; 
background-color:rgba(67, 67, 69, 0.6); // use this instead of opacity 
border-top:10px solid #000000; 
}