CSS draws a sequence step by step

Source: Internet
Author: User

There are many articles about style sheets. In fact, there are not many people who actually use transparent style sheets. I just dared to say that I knew something. Do you believe this? Next, let me talk about some things that are not mentioned in the previous article in terms of syntax and function.
Speaking of syntax, it seems that only advanced programming languages are available, and CSS is also available? The answer is yes, but it is not as complicated as other languages. In particular, its id and class completely represent the reproduction of the class in the C ++ language on the webpage.
How is it generally used? First, the id part must be written in the <STYLE> description in the HTML header file. Generally, a piece of css code is represented by a code, which is called the id description part. When referencing the object, add the class = id to use these attributes. The browser will select the attributes of the objects that reference id to define them, which can shorten your development time. And the code is easier to read. Correspondingly, there are two types of class. One is related and can be used for a tag on the page. The other is independent, that is, the class you define can be used for any one or more tags on the page.
It is useless to talk about it. I will give you some examples to illustrate it. Let's take a look at the previous examples. If I combine them into one and use id to represent them and then reference them later, the effect will be the same.
For example, in the following section, set the id of the css that has been used in Chapter 2: text1.

The code is as follows: Copy code
. Text1 {
Text-align: left;
Font-size: 15pt;
Font-family: Shu,;
Letter-spacing: 3px
Color: navy;
Line-height: 12pt;
Text-indent:. 5in;
Border: solid 1pt;
}

Then you reference it in the following text:
<P class = "text1"> Hello, this is another example. </P>
You can also get the same effect as the example in chapter 2. Of course, this class can be used multiple times or multiple tags can be used. For example, <table>, <td>, and <form>.
On the other hand, I want to talk about some css extensions in dhtml. For example, filters are currently used in many places. Filters do not process the image, but modify the objects that use this attribute in the browser. There are as many as 16 filters available now. This is not an article about DHTML, so I cannot repeat them here. However, we can give you some important and useful ideas.

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.