2
As you can see, the opacity of button
is larger than that of div
, but still it’s in the same opacity, how could I change it ??
.div1
{
width: 100px;
height: 100px;
background: #6a6a6a;
opacity: 0.5;
}
.button
{
width: 50px;
height: 50px;
margin-left: 25px;
margin-top: 25px;
opacity: 1.0;
}
<div class="div1">
<input type="image" class="button" src="https://image.freepik.com/free-icon/users-group_318-48680.jpg">
</div>
.button { width: 50px; height: 50px; margin-left: 25px; margin-top: 25px; opacity: 1.0; } 
)
– Félix