例如,我有两个类,A
并且B
,当我将鼠标悬停在数量,颜色等变化上时,我需要它。B.我不知道是否可以使用CSS和来做到这一点onmouseover
。
我要编写一段代码来处理表的创建和类的定义C
。我需要的是,当用户删除或将鼠标悬停在桌子上时,激活此类C
jQuery(grid_selector).jqGrid({
url:urllst,
datatype: 'json',
height: 'auto',,
ignoreCase: true,
colNames:['UF','NAME','CITY' ],
colModel:[
{name:"uf",index:"uf", width:100, sorttype:'text', viewable: true, frozen: true, focus: true,
stype:'text',
formoptions:{elmprefix:'*', label: 'UF:', rowpos:1, colpos:1},
editable:true,
editrules: {required: true},
edittype: 'custom',
classes: 'c',
editoptions: {style: "text-transform: uppercase",
'custom_element' : macro_uf_element,
'custom_value' : macro_uf_value,
},
大家好,我的决定如下。我声明了该函数mouseenter
,mouseleave
因为仅hover
是设置颜色而未恢复正常。当您将鼠标置于表格上方时,将在类中进行行选择C
。
$("#tabDados").mouseenter(function(){
$(".c").css("background-color","#eff3f8");
});
$("#tabDados").mouseleave(function(){
$(".c").css("background-color","#fff");
});
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句