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

前端 未结 2 1473
自闭症患者
自闭症患者 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 14:59

    Remove the following line ".ui-widget .ui-widget { font-size: 1em; }" from jquery-ui.css file.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题