這次遇到的問題是在jqGrid設置checkbox

可以正常在Internet Explorer顯示

但Chrome和Edge卻無法顯示

由於Microsoft預計在今年停止支援Internet Explorer

在嘗試各種在jqGrid設置checkbox寫法都無法解決

最後發現問題出在ui.jqgrid-bootstrap4.css

jqGrid 設定checkbox 在Internet Explorer可以顯示但Chrome和Edge無法顯示

由於我css檔案一直沿用

ui.jqgrid-bootstrap4.css版本可能是舊的

下載最新版的ui.jqgrid-bootstrap4.css中找到.ui-jqgrid .ui-jqgrid-view input

顯示為.ui-jqgrid .ui-jqgrid-view input{}

便把我的ui.jqgrid-bootstrap4.css

找到.ui-jqgrid .ui-jqgrid-view input也改為.ui-jqgrid .ui-jqgrid-view input{}

也可以把.ui-jqgrid .ui-jqgrid-view input註解掉

checkbox就能正常顯示

jqGrid 設定checkbox 在Internet Explorer可以顯示但Chrome和Edge無法顯示

arrow
arrow

    南宮洛 發表在 痞客邦 留言(0) 人氣()