Internet explorer iframe hover propagation

谁说胖子不能爱 提交于 2019-12-10 19:36:48

问题


I noticed that in normal browsers when you haver over iframe all DOM elements above it get :hover pseudoclass - except in IE:

HTML:

<div class="outer">
<iframe src="" frameborder="0" class="inner" width="100" height="100"></iframe>
</div>

CSS:

.inner{
  background: #000;
}

.outer{
  outline: 2px solid red;
}

.outer:hover{
  outline: 2px solid blue;
}

http://codepen.io/anon/pen/vKJwbz

When you hover over the black square, the outline on the outer element should be blue. In IE it resets to red. Is there any way to get around it?

来源:https://stackoverflow.com/questions/38262353/internet-explorer-iframe-hover-propagation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!