使用jqGrid更改添加表单的CSS [英] Change CSS of the add form using jqGrid

查看:149
本文介绍了使用jqGrid更改添加表单的CSS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要更改 CSS ://www.trirand.com/blog/rel =nofollow> jqGrid 。有没有任何方法可用于更改完整的CSS在jqGrid的添加表单的链接?

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?

我想导入另一个CSS文件的添加表单,并申请


I want to import another CSS file for the add form and apply for that add form.

推荐答案

使用jqGrid作为添加/编辑表单的所有CSS样式都可以找到此处此处。如果你检查这些行并检查任何jqGrid表单的HTML片段,你会看到jqGrid使用的所有类。

All CSS styles which uses jqGrid for the add/edit forms you can find here and here. If you would examine the lines and examine the HTML fragment of any jqGrid form you would see all classes used by jqGrid.

我不明白你在导入另一个css。 import只有当你有另一个CSS样式具有相同的类名和相同的元素(潜水,表,tr等元素)的层次结构时才会工作。因此,可以改变jqGrid使用的表单的样式,但样式的调整不会那么容易。您必须检查jqGrid对话框(表单)的结构才能进行更改。

I don't understand only what you mean under "to import another css". The "import" would works only if you have somewhere another CSS styles with the same class names and the same hierarchy of the elements (dives, tables, tr and so on elements). So it's possible to change the styles of forms used by jqGrid, but the adjustment of the styles will be not so easy. You have to examine the structure of the jqGrid dialogs (forms) exactly to be able to make the changes.

UPDATED: jqGrid使用jQuery UI样式。所以你只需要改变jQuery UI到另一个jqGrid将使用它。

UPDATED: jqGrid uses jQuery UI styles. So you need just change the jQuery UI to another one and jqGrid will use it.

例如演示(从简单修改旧演示)答案)会产生以下编辑表单:

For example the demo (simple modification of the old demo from the answer) produce the following Edit form:

这篇关于使用jqGrid更改添加表单的CSS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆