Is it possible to retrieve the assigned font of an element in jQuery?
Let's say there is css:
#element
{
font-family: blahblah,Arial;
}
In the above example, Arial font will be assigned to #element. Is there a way to get that information via JS/JQuery?
Something like:
$('#element').css('font-family');
returns just blahblah,Arial;
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…