我不希望子元素继承父不透明度。[在此处输入链接描述][1]
[1]: http : //jsfiddle.net/xALAW/jsfiddle
<html>
<head></head>
<body>
<div class='hasopacity'>
This is the text with some opacity
<div class='noopacity'>
This is the text with no opacity
</div>
</div>
</body>
css
.hasopacity{opacity:0.5}
.noopacity{opacity:1}