参考
用JS获取单元格值,然后判断,再用下面是改单元格颜色的JS
$('td[id*=A1]').css('background-color','rgba(0,0,0,0.6)')
$('td[id*=B1]').css('background-color','rgba(0,255,0,0.6)')
$('td[id*=A2]').css('background-color','rgba(0,0,255,0.6)')
$('td[id*=B2]').css('background-color','rgba(255,0,0,0.6)')
RGBA是透明 RBG是颜色 或者用16进制也可以