This question already has an answer here:
Can I assign the opacity
property to the background
property of a div
only and not to the text on it?
I've tried:
background: #CCC;
opacity: 0.6;
but this doesn't change the opacity.
</div>
转载于:https://stackoverflow.com/questions/5135019/css-opacity-only-to-background-color-not-the-text-on-it