[英]CSS descendant selector with focus state not working in iOS
I'm using the :focus state to show content, when the parent element has focus. 当父元素具有焦点时,我正在使用:focus状态显示内容。 Like so:
像这样:
.child { display: none; }
.parent:focus .child { display: block; }
Note that the parent element has tabindex="0" set. 请注意,父元素已设置tabindex =“ 0” 。 Is there a way to get this to work in iOS browsers?
有没有办法让它在iOS浏览器中工作? I'm asking to see if a CSS-only solution is possible, no javascript please.
我想看看是否可以使用仅CSS的解决方案,请不要使用javascript。
I've set up a reduced test case fiddle here: http://jsfiddle.net/E8zCU/ 我在这里设置了简化的测试用例提琴: http : //jsfiddle.net/E8zCU/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.