Home > Article > Web Front-end > A brief analysis of IE10 compatibility issues (cols attribute of frameset)_javascript skills
Recent requirements involve browser compatibility, and the first one to deal with is ie10.
The homepage uses frameset to embed two pages. The left side is the menu bar, which can be shrunk by changing the cols of the frameset. Other browsers work fine, but IE10 has no response.
/*force ie10 redraw*/
if(navigator.userAgent.indexOf('MSIE 10.0') != -1){
var w = parent.document.body.clientWidth;
parent .document.body.style.width = w 1 'px';
setTimeout(function(){
parent.document.body.style.width = w - 1 'px';
parent.document .body.style.width = 'auto';
}, 0);
}
}