I'm trying to use Myriad Pro as my primary font with Arial and such as a fall-back like so:
font: 13px "Myriad Pro", "Helvetica", "Arial", "sans-serif";
I want to change the font-size when Arial or Helvetica are selected. This is what I have in jQuery but it does not work:
$(function(){
if ($("body").css("font") == "Arial") {
$("body").css("font", "10px");
};
});
I appreciate your time, help and generosity :)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…