How to use the whole layout statement in CSS

Source: Internet
Author: User

1. Basically, there are two ways to declare a whole, the first is to target a label, and then set several styles at a time. The second way is to set the same style for several tags at once. The following example is: "For a label, and then set several styles at a time":


  body{font-size:9pt;
  font-color:red;
  background:white}

2. You will find that we also declare: Glyph size is 9pt, glyph color is red, background is white, these 3 styles, in order to separate the three styles, we use the semicolon ";" to separate, so as to function properly! Of course, if you think such a column of writing is a waste of space, then you can also write a line of the form, as follows:

Several labels set the same style

1. We have just seen a tag and set several styles, and in fact, we can also set several tags together, for example:

In this case, we also set up three sets of tags

,

, , in other words, all of these three tags wrapped, its text size will become 12pt, red word, and in the song body display!



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.