![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif)
Code
body /*<body>元素*/
{
color:White;
background:black;
}
p#main /*<p>元素中Id为main的CSS*/
{
text-align: center;
font-size:20px;
color:#112255;
}
.red /*red类 可以class="red blue",同时指定多个类*/
{
color:Red;
background-color:Black;
}
.blue /*blue类*/
{
color:Blue;
background-color:Black;
}
h1#sb /*<h1>元素中Id是sb的*/
{
font-style:italic;
}
#sb.red /*Id为sb,并且属于red类*/
{
color:Gray;
}