【发布时间】:2012-04-17 19:15:48
【问题描述】:
我在页面主体上有一个背景,它是我想通过第一级 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>
显然二级 div 也获得了 0.9 的不透明度,有没有办法覆盖它?
【问题讨论】:
-
这应该会有所帮助。 css-tricks.com/…
-
简单的答案是否定的:你需要想办法绕过它。