CSS Setting font style

Source: Internet
Author: User

createtime--2017 December 20 16:43:35

Author:marydon

1.font-family

Syntax: A property value can have one or more, separated by commas between multiple values.

Description: If the browser does not support the first font, it will try the next one, using the first value (font) it can recognize.

Example:

{    font-family: -apple-system-font,helvetica neue,helvetica,microsoft Yahei;}

Purpose: Used to set page font style

Note: There are two ways to set the font for Microsoft Ya-Black

Way One

Font-family: "Microsoft Jas Black";

Mode II (recommended)

Font-family:microsoft Yahei;

The way one declares the Chinese, you need to add double quotes.

2.font-size

Purpose: Used to set font size

Note: The value needs to be even, the Web page best font size is 12px

3.color

Purpose: Set Font color

Note: There is no Font-color property

CSS Setting font style

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.