Code: Select all
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
Is there anyway to work around this issue without reverting back to the old IE rendering engine?
Code: Select all
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
Code: Select all
if ( navigator.userAgent.Contains( "MSIE 7", false ) )
{
// IE 7 bug: Older builds of IE 7 have the following bug: if you create an iframe who's URL has a bookmark and the iframe's opacity has been set,
// the document won't scroll to the bookmark. It seems to be a render issue because scrolling the document in the iframe causes it to jump down to
// the bookmark and scroll from there. The hack workaround is to cause the iframe to redraw after the document has loaded, which is done here.
window.setTimeout( function()
{
document.body.style.display = "none";
document.body.style.display = "";
}, 1 );
}
Code: Select all
if ( navigator.userAgent.Contains( "MSIE 7", false ) && document.documentMode == 7)
{
....
}