css| Skills | tutorials
method of the whole declaration
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":
<stype= "Text/css" >
body{font-size:9pt; Font-color:red; Background:white}
</style> |
2.You will find that we also declare: The glyph size is 9pt, the glyph color is red, the background is white, these 3 styles, in order to separate these three styles, we use the semicolon ";" to separate it, 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:
<style type= "Text/css" >
body{font-size:9pt; Font-color:red; Background:white}
</style> |
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:
<style type= "Text/css" >
h1,h2,td{font-size:12pt; font-color:red font-family: Song Body }
</style> |
In this case, we also set up three sets of tags
Next section: sub-item declaration