ความต้องการล่าสุดเกี่ยวข้องกับความเข้ากันได้ของเบราว์เซอร์
โฮมเพจใช้เฟรมเซ็ตที่มีสองหน้าและด้านซ้ายคือแถบเมนูซึ่งสามารถทำสัญญาได้โดยการเปลี่ยน Cols of Frameset เบราว์เซอร์อื่นเป็นเรื่องปกติ แต่ IE10 ไม่มีปฏิกิริยา
คัดลอกรหัสรหัสดังนี้:
ฟังก์ชั่น hide_show () {
if (window.parent.outer_frame.cols == "0,10,*") {
frameshow.src = "<%= request.getContextPath ()%>/common/images/left_handle.gif";
div_hide_show.tital = "ซ่อน"
window.parent.outer_frame.cols = "210, 10,*";
} อื่น {
frameshow.src = "<%= request.getContextPath ()%>/common/images/right_handle.gif";
div_hide_show.tital = "แสดง"
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 = "ซ่อน"
window.parent.outer_frame.cols = "210, 10,*";
} อื่น {
frameshow.src = "<%= request.getContextPath ()%>/common/images/right_handle.gif";
div_hide_show.tital = "แสดง"
window.parent.outer_frame.cols = "0,10,*";
-
/*Force IE10 Redraw*/
if (navigator.useragent.indexof ('msie 10.0')! = -1) {
var w = paint.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);
-
-