In IE and Edge it works only when you hover over the border and not the contents of IFRAME
On Chrome, Safari whatever it works as expected (:hover
stays when hovering over border AND content)
https://jsfiddle.net/zy7tqvxf/1/
Is there any workaround for this without adding extra elements and javascript handlers?
My guess is that IE thinks the iframe is not part of the HTML and so :hover
isn't registered. I found a fix using javascript, and adding a hover
class, see fiddle.
$('#frame').hover(function() {
$(this).addClass('hover');
});
$('#frame').mouseleave(function() {
$(this).removeClass('hover');
});
Hope it helps
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With