所以这里是我的代码,这显然行不通....基本上,我希望能够看到#child
而父母是隐藏设置不透明度孩子从它更大的父
<style>
#parent { opacity : 0 }
#parent:hover { opacity : 1 }
#child { opacity:1 }
</style>
<div id="parent">
<h1 id="child"> title </h1>
<span>aaaa</span>
<span>aaaa</span>
<span>aaaa</span>
</div>
它的一部分非常大的代码与很多的jQuery的效果和代码,其他人已经写了,我不想搞乱任何东西,所以我真的不想在#parent之外移动#child
我敢肯定的混浊繁殖如堆栈。子继承父级的不透明堆栈。 – MightyPork 2015-01-09 20:29:08
你的意思是[这个](http://jsfiddle.net/chipChocolate/qase4n5z/)? – 2015-01-09 20:31:30
@ chipChocolate.py关闭...我想让孩子看起来像这样http://jsfiddle.net/qase4n5z/1/但在此代码中悬停不起作用 – max 2015-01-09 21:31:40