The application of CSS is not difficult, but please refer to the basic understanding here, some words have a little basic concepts, for you look at the back of the teaching will be helpful, it looks like it will not be too strenuous!
Understanding of basic terminology: Elements (Element): the tag (tag) in the basic HTML syntax.
attribute: An attribute used to describe a label attribute.
For example: Style: A property of a group or array that describes the characteristics of a component.
Selector (selector): A component of the applied style.
For example:
h3{Color:blue}, H3 is the pick, color is the property, BLUE is a color value.
Second, the basic unit of understanding:
There are two units of relative units and absolute units to express the way.
Relative units:
"em": the proportional factor relative to the letter height.
"EN": proportional factor relative to the font size.
"%": an example of a percentage relative to the length unit (usually the size of the current font). Absolute unit: "in": inches.
"cm": cm.
"MM": mm.
"px": Pixel (System preset unit).
"PC": Pica, printing type unit.
"PT": Like Dot.
Relative relationship: 1in= 6pc= 72pt= 2.54cm= 25.4mm
Third, the use of color awareness:
There are five different ways to represent colors.
"#RRGGBB": Values of red, green, and blue primary colors that represent 0 to 2,550 decimal values, respectively, with a value of three 00 to FF 16. "#RGB": a shorthand notation that uses only three 0 to F 16 values to represent the red, green, and blue primary colors respectively. In fact, the browser automatically expands to six-16-digit values, such as "#ABC" will change to "#AABBCC". However, it is not obvious that such a notation is accurate. RGB (R,G,B): color is represented by a value of red, green, and blue Primary colors from 0 to 2,550 decimal values. "RGB (r%,g%,b%)": Red, green, blue relative to each other in the numerical scale to represent the color, such as "RGB (60%,100%,75%)." "Color_name": color is directly represented by the color name, there are 141 kinds of standard color names.
Four, the understanding of the URL representation: CSS URL represents a total of five ways, and are legitimate declarations, you can choose by yourself.
URL (Http://yourweb/path/file_name)
URL (' Http://yourweb/path/file_name ')
URL ("Http://yourweb/path/file_name")
URL (' Http://yourweb/path/file_name ')
URL ("Http://yourweb/path/file_name")
With these basic ideas and concepts, the next step is to introduce you to the CSS application method Luo!
|