JAVAEE--CSS font Style

Source: Internet
Author: User

Statement: The material used in this column is written by the VIP students of the Kay Academy, who has the right to be anonymous and has the final right to interpret the article; The Edith Academy is designed to promote students to learn from each other on the basis of public notes.

CSS font styles

With CSS style sheets, you can customize the font. Download the desired font library, and then create a directory in the project to hold the font library file, the downloaded font library file, then you can refer to the font library in the directory, using @font-face to customize the font library, for example, I downloaded a Mao Zedong font, Then create a font directory in the project and put the font library file in:

Tip: If you are doing experiments, practice, you can download a variety of font library to use, but if it is on the personal site or other public website, if you do not obtain the authorization of a non-free font, do not use these fonts, so as not to cause infringement of the behavior.

code example:

Operation Result:

Font-weight:bold The font is bold, Font-weight has a lot of properties, but the most common is the bold bold, code example:

Operation Result:

Text-shadow sets the shaded portion of the font, in the form of: npx npx npx Color, text-align to set the layout of the font, the commonly used properties are Center (center), left (aligned to the right), and the code example:

Operation Result:

Text-decoration set Font horizontal correlation, you can set the font underline, underline, underline and remove the horizontal line and so on, for example, you can remove the hyperlink underline, code example:

Operation Result:

Mind Mapping:

JAVAEE--CSS font Style

Related Article

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.