Is there any mechanism to display a child element when its parent element is display: none?
The situation is a validation error on a hidden tab. I want to surface the error message, even though the field is hidden.
A really simplified JSFiddle of the situation is here http://jsfiddle.net/vLYnk/
Markup:
<ul>
<li>One</li>
<li class="hide">
Two
<ul>
<li class="reshow">Re Show Me</li>
<li>Inner 2</li>
</ul>
</li>
<li>Three</li>
</ul>
CSS:
.hide {display: none}
.reshow {display: block !important; position: fixed; top: 0; left: 0;}
I'm guessing this is impossible as the child would have no context, but just in case???
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…