一.派生选择器
li strong
{
font-style: italic;
font-weight: normal;
}
二.id选择器
#red
{color:red;}#green
{color:green;}
三.类选择器
.center
{text-align: center}
四.属性选择器
[title]
{color:red;}
五.通配符选择器
*
{color:red;}
六.元素选择器
div
{color:red;}
七.子元素选择器
h1 > strong
{color:red;}
八.兄弟选择器
h1 + p
{margin-top:50px;}
九.伪类选择器
selector:pseudo-class
{property: value;}
十.伪元素选择器
selector:pseudo-element
{property:value;}