Change CSS of the add form using jqGrid

后端 未结 5 2292
囚心锁ツ
囚心锁ツ 2020-12-18 13:05

I want to change the CSS of the add form of the jqGrid. Are there any methods available for changing the complete CSS in the linking of the add form for the jqGrid?

5条回答
  •  臣服心动
    2020-12-18 13:13

    You can't change the stylesheets without affecting the whole page.

    The only way I can think of to achieve this would be to use an iframe, but it would be a bit clunky.

    You could add a class to a parent div, and then change the css files to be something like

    .sheet1 .c1 {
        border: 1px solid #000
    }
    

    in the first sheet and

    .sheet2 .c1 {
        border: 3px solid #f00;
    }
    

    in the second. Then your markup would be:

    Hello!

    Change the class sheet1 in the parent div to sheet2 and the child div will change.

提交回复
热议问题