Amerson Ansen
Amerson Ansen

Reputation: 11

what does the sentence means? -->"font:12px/1.5 \5fae\8f6f\96c5\9ed1;", I can't figure out

body{
    background-color: #ccc;
    font: 12px/1.5 \5fae\8f6f\96c5\9ed1;
}

I can't figure out the value of 'font'....

Upvotes: 1

Views: 330

Answers (2)

mayersdesign
mayersdesign

Reputation: 5310

It sets the font to the Chinese font family Microsoft YaHei using unicode characters. The first character here for example is: 5fae and means "small, prefix micro-, trifling". After that I'm lost! Very interesting :)

enter image description here

Upvotes: 1

Martin
Martin

Reputation: 22760

Your line is:

font: font size (pixels) / the line height (relative to font size so 12 x 1.5) and then the font family name, the name is chinese characters so is displayed (unicode?) in this way.

You can read more about this font name here

Overall the CSS line is a shorthand version of standard CSS font declaration, but using a non-latin font-family name.

Upvotes: 0

Related Questions