例如,我有兩個類A
和B
,我需要當我將鼠標懸停在數量,顏色等的變化上。B.我不知道是否我可以使用CSS和onmouseover
來做到這一點。如何使懸停效果改變選擇另一個「對象」
我把一段代碼,處理表的創建和類C
的定義。 我需要在這裏的是,當用戶delecione或將鼠標懸停在表激活此類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,
},
'Hover'允許兩個回調。您也可以執行'$(「#tabDados」)。hover(callback1,callback2)'第一個回調函數是mouseenter,第二個回調函數是mouseleave。 – Smeegs