css property control 1

<! DOCTYPE HTML> 
<HTML lang = "EN">
<head>
<Meta charset = "UTF-. 8">
<title> the Title </ title>

<style>
/ *. 1. Color attribute * /
/ * color code wording : 1 by English * /
/ * 2 .. # cc3399 (# C39)
3. by RGB (255,255,255)
4. ----- RGBA through fourth parameter represents the transparency, is in the range 0-1 (255,255,255 , 0.2) * /
/ * P {* /
/ * Color: # C39; * /
/ *} * /
/ * P {* /
/ * Color: # cc3399; * /
/ *} * /
/ * P {* /
/ * Color: RGB (1,245,244) * /
/ *} * /
/ * {P * /
/ * Color: RGBA (1,245,244,0.6)*/
/*}*/
/ * 2 font attribute * /
/ * P {* /
/ * font-size: 45px; * /
/ * * font-style:! Oblique; * * /!
/ * Font-style: Italic; * /
/ * font-family: 'Times New Roman ' * Font style * * /!!
/ * * font-weight:! 100; * adjust font thickness * * * /!!!
/ *} * /
/ * 3 background properties *. /

/ * image cancellation of the outer boundary margin * /
* {
margin: 0;
}

/ {DIV1 * # * /
/ * height: 1600px; * /
/ ** /
/ * image background-: URL ( ". 1. ! jpg "); * the effect is a lot of Zhang tile * * /!
/ * background-REPEAT: REPEAT-the X-; * tile ----- x * * * in accordance with the kind of way /!!!!
/ * background-repeat: repeat-y; * follow that way tile ---- y * * /!!
/ * background-repeat:! no -repeat; * Unique * * /!
/ * background-size: 600px, 600px; * /
/ *} * /
/ * short * /
/ * # DIV1 {* /
/ * height : 1000px; * /
/ * background: URL ( "1.jpg") NO-REPEAT Blue 100px 100px; * /
/ *} * /
/ * text attributes. 4 * /.
P {
background-Color: Red;
text-align = left : Center;
line-height: 100px; / * set the row height * /
letter-spacing: 5px; / * * set the distance / between letters
word-spacing: 10px; / * set the distance between the word * /
TEXT- transform: capitalize; / * the first letter of each word * /
}

</ style>
</ head>
<body>
<- 2 font attributes -!>
<!--<p>hello p</p>-->
<!--3背景属性-->
<div id="div1"></div>
<!--4. 文本属性-->
<p>hello p Go Home Or Go big</p>
</body>
</html>

Guess you like

Origin www.cnblogs.com/startl/p/12160323.html
Recommended