模板web属性 -》分页预览-》为改模板单独设置 -》事件设置-》加载结束
代码
$(".x-table tr").mousedown(function() {
//所在行背景色:黄色
$(this).css("background-color","yellow");
$(this).siblings().css("background-color","white");
var id1 =$(this).attr("id");
//alert("aaa");
//alert("id="+id1);
var tid=$(this).closest("table").attr("id");
//alert("id="+".frozen-center .x-table #"+id1);
if($(this).closest("div").attr("id")=="frozen-west")
{
$(".frozen-center .x-table #"+id1).css("background-color","yellow");
$(".frozen-center .x-table #"+id1).siblings().css("background-color","white");
}
else
{
$(".frozen-west .x-table #"+id1).css("background-color","yellow");
$(".frozen-west .x-table #"+id1).siblings().css("background-color","white");
}
});