<div class="container">
<div class="site_content">
some stuff, images etc
</div>
</div>
.container{
background-color:#333;
}
What I'd like is to have the .container div to have opacity of 80%, but the content of .site_content to be at 100%
Setting css opacity affects all child elements. Is there a way do this? With jQuery?
Because of how this will be used, I'd prefer to avoid the technique of positioning another transparent div behind to achieve the effect.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…