我有一个页面主体的背景,这是一个我希望通过第一级div而不是第二级显示的图像
<body>
<div style='opacity:0.9;'><p>This is a wrapper that shows some of the background</p>
<div style='background-color:#fff;'><p>This is a child div that I want to be all white</p>
</div>
</div>
</body>
Run Code Online (Sandbox Code Playgroud)
显然,第二级div获得了.9的不透明度,还有一种方法可以覆盖它吗?