我正在使用网站标题,我需要在标题的背景上放一些行。一旦我把它与一些不透明我得到一个问题。我所有的标题现在都处于不透明状态。CSS:问题与不透明
HTML:
<div class="header">
<div clas="header strips">
<div class="some_content"><lots of text</div>
</div>
</div>
CSS:
.header
{
height: 120px;
width: 100%;
float: left;
background-color: #3A5FCD;
background: linear-gradient(to bottom, #00BFFF,#3A5FCD);
}
.strips
{
background: url(../img/picture.png);
opacity: 0.3;
}
.some_content
{
color: #FFFFFF;
font-family: MaassslicerItalic;
font-size: 20pt;
border-bottom:5px solid red;
}
我不明白为什么我的<div class="some_content"><lots of text</div>
也与透明度。
这里是链接到原始网站与RGBA背景颜色 http://portal.plazma.com.ua/
[CSS透明度和子元素]的可能重复(http://stackoverflow.com/questions/2561460/css-opacity-and-child-elements) – showdev