console.log(getComputedStyle(ttitle[i]).color);
if (getComputedStyle(ttitle[i]).color=="rgb(0, 0, 0)") {
ttitle[i].style.color ='#10adff';
}else{
ttitle[i].style.color ='#000';
}
需要個(gè)字體設(shè)置顏色讓rgb=000
.ttitle{
text-align: left;
color: #000;
}
console.log(getComputedStyle(ttitle[i]).color);
if (getComputedStyle(ttitle[i]).color=="rgb(0, 0, 0)") {
ttitle[i].style.color ='#10adff';
}else{
ttitle[i].style.color ='#000';
}
需要個(gè)字體設(shè)置顏色讓rgb=000
.ttitle{
text-align: left;
color: #000;
}