【发布时间】:2013-04-05 11:59:48
【问题描述】:
我在不透明度为 0.4 的 div 中有一个导航列表(无序列表)。 UL 内的锚点设置为不透明度 1,但这没有效果。
<div style="background-color: #000; opacity: 0.4">
<ul>
<li><a href=".." style="background-color: #000; opacity: 1">home</a></li>
</ul>
</div>
有什么建议吗? 谢谢
【问题讨论】:
-
重复,其中包括:Nontransparent child in transparent parent 和 Set opacity of background image without affecting child elements。叹息,我可能已经投票结束,因为重复了错误的问题,我意思是这个:how to not apply opacity for child element。