1. Attribute selectors (7)
2. font-family
Font usage
p{font-family: ' Black body ', ' Arial ';}
3. Font-size
Font size
p{font-size:12px;}
4. Font-weight
P{font-weight:bold;}
5. Font-style Style
P{font-style:italic;}
6. Font
Abbreviation
P{font:italic bold 14px/22px "Microsoft Jas Black";}
7. Color Colors
p{color:red;}
8. text-decoration Font Horizontal Line
P{text-decoration:overline;}
9. Text-shadow Shadows
p{text-shadow:5px 5px rgba (0, 0, 0,. 6);}
Ten. Width
div{width:100px;}
One. Height
div{height:100px;}
Margin
div{
width:100px;
height:100px;
border:1px;
margin:1px 2px 3px 4px;/* upper Right lower left */
}
padding.
div{
width:100px;
height:100px;
padding:5px 10px 15px 20px; /* upper Right lower left */
padding:5px 10px; /* up or down *
padding:5px 10px 15px; /* On the left or right * *
padding:5px; /* upper Right lower left */
border:5px solid #000;
}
The way of learning 1-2