一.基本语法:
标签选择器:body{}
id选择器: #xxx{} 需要对应 <div id="xxx"></div>来使用
类选择器:.xxx{} 需要对应 <div class="xxx"></div>来使用
属性选择器(较少见):[title]{} 所有属性中含有title的进行设置
二.扩展用法
对多个标签、id、类、属性指定同一组设置(通常为字体、颜色、背景色等位置)
h1,h2,h3,h4,h5,h6
{}
派生选择器(或称为上下文选择器 (contextual selectors)),较为常见用法
li strong
{
font-style: italic;
font-weight: normal;
}