IT Band of Brothers HTML5 CSS3 Tutorial Secret common CSS style attributes and values 2

925bbf4ae57141b4a9dfcde6a7fc3d7d.jpg

 

3 Background Properties

Most HTML elements allow controlling the background, background color, background image, background repeat, background attachment, background location and other attributes. BACKGROUND common control attribute, the value described in Table 2 and FIG.

Table Properties common control of 2 CSS in background

 

430ae1839c3a4524be53f77759bbf6f8.png

   

 

6-2 except that the background attribute table provided in the control background style HTML elements, may be reduced to one line of code to solve. By way of background class background property implementation, the syntax is as follows:

background: <Background color> || <background image> || <BACKGROUND repeated> || <BACKGROUND Accessories> || <BACKGROUND position>

Background property background is a clearer context, the relationship is shorthand property. The following are examples of some of the background of the statement:

7893fa9b0a0a45d8bad52d639a0fb419.jpg

When a value is not specified, the acceptance of its initial value. For example, the first three rules described above, the lateral and longitudinal position of the background attributes are set to 0% and 0%.

 

4 text attributes

CSS text properties include spaced letters, text-decoration, text alignment, text-indent, line height, and text like case, as shown in Table 3.

Table Properties common control text in 3 CSS

 

84e4ffa615ee4d7ca9da26b4f6d4de94.png

    

   

Guess you like

Origin www.cnblogs.com/itxdl/p/11756665.html