Set div background is translucent, there is a good example below, using DIV+CSS to achieve under, no friend can refer to the next
Div{filter:alpha (opacity=80);-moz-opacity:0.5;opacity:0.5;}
Description
1, Filter: Set the translucent filter effect on win IE, Filter:alpha (opacity=80) represents the object 80% translucent, Firefox browser does not recognize
2,-moz-opacity: the Mozilla Firefox browser to achieve translucency, win IE do not recognize this attribute,-moz-opacity:0.5 equivalent to set the translucency 50%
3, opacity: all browsers except IE support including Google, put the last mainly for Google Browser, opacity:0.5; set 50% Translucent
To observe the semi-transparent implementation of DIV, we set up two div layers, one placed in another div layer, and the outer div named ". Div-a"; The above contained layer CSS class is named ". Div-b", which forms ". Div-b" box in ". Div-a"
We set a background for the underlying div is a picture, the div box above sets the village black.
Use CSS to make div translucent