var location = this.options.location;
var cr = FR.cellStr2ColumnRow(location);
var col = cr.col - 1;
var ro = cr.row;
FR.Msg.confirm("设置颜色", "确定要改变字体颜色吗?", function(value) { //自定义弹框
if (value) {
$("tr[tridx=" + ro + "]").find("td[col=" + col + "]").css({
'color': 'yellow'
});
$("tr[tridx=" + ro + "]").find("td[col=" + col + "]").css({
'background-color': 'red'
});
} else {
$("tr[tridx=" + ro + "]").find("td[col=" + col + "]").css({
'color': 'black'
});
$("tr[tridx=" + ro + "]").find("td[col=" + col + "]").css({
'background-color': 'white'
});
}
})
相关来源①: https://bbs.fanruan.com/wenda/question/111521.html
相关来源②: https://bbs.fanruan.com/wenda/question/124484.html |