문제

I'd like to apply background color css to text in a datatable cell. Currenytly I can only apply the color to the whole cell, how can I apply it only to the text in the cell? Here is what I am using now:

$.each(aData, function(ii,value2){
          if (value.sTitle == "Priority" && aData[i] != ""){
              $('td:eq(' + i + ')', nRow).css('background-color', '#F6CED8');
            }   
        }); 
도움이 되었습니까?

해결책

Like the other user said. Put it inside div or p tags and change the background color of that specific object.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top