CSS:
.red-tile-color{
background-color:red;
color:white;
}
JS:
var colorName = $(".red-tile-color").css("color");
Return:
rgb(255, 255, 255);
How do i return the name of color assigned on css?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…