How to make jQuery UI's style not overwrite jqGrid's style?

前端 未结 2 1470
自闭症患者
自闭症患者 2021-01-23 14:26

Here is my situation, I\'m having a jquery ui dialog with a jqgrid inside of it. When I opened the dialog, I can see that the grid\'s style has been overwritten by the dialog\'s

2条回答
  •  礼貌的吻别
    2021-01-23 15:13

    Before you create more complex solution probably this simple CSS

    html, body { font-size: 75%; }
    

    will be already the workaround. The problem is that jqGrid CSS use em (relative font size) and jqGrid use absolute values in pixel. To use the same font size on the whole page you can use above CSS.

提交回复
热议问题