最近の需要には、ブラウザの互換性が含まれます。
ホームページは2ページのフレームセットを使用し、左側はメニューバーで、フレームセットのコルを変更することで契約できます。他のブラウザは正常ですが、IE10には反応がありません。
次のようにコードコードをコピーします。
関数hide_show(){
if(window.parent.outer_frame.cols == "0,10、*"){
frameshow.src = "<%= request.getContextPath()%>/common/images/left_handle.gif";
div_hide_show.tital = "hidden"
window.parent.outer_frame.cols = "210、10、*";
} それ以外 {
frameshow.src = "<%= request.getContextPath()%>/common/images/right_handle.gif";
div_hide_show.tital = "display"
window.parent.outer_frame.cols = "0,10、*";
}
}
colsのかけがえのない効果を設定し、行を設定します。これは、IE10のバグの問題によるものです。有効にするには、ページサイズを調整する必要があります。
次のようにコードコードをコピーします。
関数hide_show(){
if(window.parent.outer_frame.cols == "0,10、*"){
frameshow.src = "<%= request.getContextPath()%>/common/images/left_handle.gif";
div_hide_show.tital = "hidden"
window.parent.outer_frame.cols = "210、10、*";
} それ以外 {
frameshow.src = "<%= request.getContextPath()%>/common/images/right_handle.gif";
div_hide_show.tital = "display"
window.parent.outer_frame.cols = "0,10、*";
}
/*IE10 REDRAW*/FORCE*/
if(navigator.useragent.indexof( 'msie 10.0')!= -1){
var w = paint.document.body.clientwidth;
parent.document.body.style.width = w + 1 + 'px';
setimeout(function(){
parent.document.body.style.width = w -1 + 'px';
parent.document.body.style.width = 'auto';
}、0);
}
}