html: :
<div id="Opacity"><span class="P">Here Is My P</span>
CSS:
#opacity {
width:400px;
height:400px;
border:black 1px solid;
opacity:0.3;
background-color:black;
}
.P {
font-family:cursive;
font-size:24px;
color:white;
}
但输出单词也是透明的。我希望单词透明但 div 变得透明谢谢