It is a known IE issue, I did an investigation some time ago and the only way I know is already mentioned by @Gyum Fox - another 'mask' iframe
. However you don't have to put an iframe "between" the elements - you can put absolutely positioned iframe
inside corresponding element with 100% height and width.
CSS of an iframe to be placed inside of the element:
iframe.ie-fix {
position: absolute;
border: none;
top: 0;
left: 0;
height: 100%;
width: 100%;
z-index: -1;
}
The problem that jQuery constructs menu content dynamically, so we need to handle some events to insert the mask. This simple code adds mask to all menus on the page. Not a complete solution, however shows the approach:
$('.ui-button').click(function() {
$('.ui-menu').append("<iframe class='ie-fix' src='about:blank'></iframe>" );
});
Ideally we need to update only corresponding menu, butI need to dig deeper into jQuery's sources to accomplish that, will try to address later.
JS Fiddle with complete example
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…