<分区>
<分区>
Possible Duplicate:
how to not apply opacity for child element?
是否可以使用 css 或 jquery 将透明度/不透明度应用于元素而不影响子元素?
最佳答案
也许你会想要设置背景不透明度
/* Fallback for web browsers that doesn't support RGBa */
background: rgb(0, 0, 0);
/* RGBa with 0.6 opacity */
background: rgba(0, 0, 0, 0.6);
查看 this blog进一步支持
关于jquery - CSS 不透明度 - 不影响子元素,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13236218/