IE 報表縮放後頁面破版

2022-07-15 10:09:14 字數 1202 閱讀 3129

需要自己新增ie的報表放大縮小的按鈕

1.找到需要放大報表的位置

2.設定它為相對位置(absolute)

3.設定它的位置為(0,0) ,放大**(zoom)

reportviewer1為報表reportviewer的id

$("#reportviewer1_fixedtable > tbody > tr:nth-child(4) > td:nth-child(3) > div > div:nth-child(1) > div > table").height($("#hidheight").val() * $('#zoom').val() / 100);

$("#reportviewer1_fixedtable > tbody > tr:nth-child(4) > td:nth-child(3) > div > div:nth-child(1) > div > table").width($("#hidwidth").val() * $('#zoom').val() / 100);

$("#reportviewer1_fixedtable > tbody > tr:nth-child(4) > td:nth-child(3) > div > div:nth-child(1) > div > table> tbody > tr > td> table")[0].style.position = "absolute";

$("#reportviewer1_fixedtable > tbody > tr:nth-child(4) > td:nth-child(3) > div > div:nth-child(1) > div > table> tbody > tr > td> table")[0].style.top = 0;

$("#reportviewer1_fixedtable > tbody > tr:nth-child(4) > td:nth-child(3) > div > div:nth-child(1) > div > table> tbody > tr > td> table")[0].style.left = 0;

$("#reportviewer1_fixedtable > tbody > tr:nth-child(4) > td:nth-child(3) > div > div:nth-child(1) > div > table> tbody > tr > td> table")[0].style.csstext = "zoom: " + $('#zoom').val() + "%;"

先填充在縮放和先縮放後填充的區別

將同樣的一張圖 101 156 採用兩種不同的方式進行縮放填充,帶來的畫素差異 1.先填充後縮放 2.先縮放後填充 opencv2預設採用的是inter linear 雙線性插值法 3.對比兩張的不同並且視覺化 結果將會顯示近一半的畫素值不同.為什麼會產生這種原因呢?主要是座標的位置發生了變化,因為...

tab 頁形式展現多張報表

業務系統中,很多報表都是沿用之前 excel 的報表樣式,原來以 sheet 格式顯示的表,客戶在 web 端展現的時候也希望也有同樣的格式,潤幹在實現這種效果和 excel 一樣簡單靈活,輕鬆將資料包表以多個 tab 頁的形式展現在頁面中,達到了一同展現,同時進行查詢 列印 匯出 excel 結果...

IE禁用網頁縮放(手動和bat指令碼)

手動操作 1.開啟登錄檔 win r 輸入regedit 2.找到目錄 找到目錄hkey current user software microsoft internet explorer zoom 3.右鍵新建reg dword值 新建的值命名為zoomdisabled引數為1 4.重新開啟ie ...