body{font-family: "Hiragino Sans GB", "Hiragino Sans GB W3", "Helvetica Neue", "Microsoft Yahei", Helvetica,arial, Sans-serif}
Or
Body
{
font-family: "Microsoft Yahei", Arial,helvetica,sans-serif, "Song Body";
}
3 cases not in force:
1. When this attribute defines a global style, the label for the form class does not take effect and needs to be defined again as:
Body {font-family: "Microsoft Yahei";} The form input does not take effect,
You also need to define an input {font-family: "Microsoft Yahei";} Can.
2. The local computer does not exist Microsoft Ya Black font, some system default does not have Microsoft ya Black, the general default is the song body, as long as the download a Microsoft Ya black font, after installation can.
3. There is also a character set problem, it is suggested that the Chinese font-family: "Microsoft Jas Black"; font-family: "Microsoft Yahei"; The character set affirms UTF-8 or GB2312.
How to set the default font for a Web page