我有两个div,一个是外部的div,一个是内部的div。我有一个背景图像,并且设置了外部div的不透明度,但是我似乎无法让内部div不继承外部div的不透明度。我希望内部div是纯色的。
以下是我的代码和jsfiddle链接:http://jsfiddle.net/3TK3U/
以下是我的代码和jsfiddle链接:http://jsfiddle.net/3TK3U/
<style type="text/css">
body
{
background-image:url('http://media-bubble.info/images/layout/background.png');
}
.outsideBox {
width:70%;
height:200px;
background-color: #ffffff;
opacity:0.7;
filter:alpha(opacity=70);
text-align:center;
}
.insideBox {
width:40%;
height:80px;
background-color: #999;
z-index:999999;
}
</style>
<div id="Introduction" class="outsideBox">
<div id="Introduction" class="insideBox">This is the inside box which should not inherit transparancy</div>
</div>