JQgrid怎么改变选定行的背景颜色么?知道是在CSS里,是改变那个CSS选择器啊??

html-css09

JQgrid怎么改变选定行的背景颜色么?知道是在CSS里,是改变那个CSS选择器啊??,第1张

选定义一个类样式

.SelectBG{

background-color:#ffeeee

}

然后定义表格

id="SelectTable"

最后jQuery

$("#SelectTable tr").toggle(

function(){

$(this).addClass("SelectBG")//点第一次选中

},

function(){

$(this).removeClass("SelectBG")//再点一次就反选

}

)

1、不需要重新写一个from表单,你直接把需要排在一行的两个input写在一个P标签里面就可以了。例如:<p>人工费 :<input type='text' name='labourCost' id='labourCost'><font color='red'>*</font> 材料费 :<input type='text' name='materCost' id='materCost'><font color='red'>*</font></p>。

2、用jqgrid的dialog弹出表单的嘛,和自定义按钮没有关系的。