您可以在CSS里添加注释来解释您的代码。就像HTML注释,CSS注释将被浏览器忽略。一个CSS注释用“/*”开始,用“*/”结束。注释可以在规则之前或者内部出现,并且可以添加多行注释。它们也可以使用注释去掉整个规则或者单个声明。例如:
/* Comment here */
p
{
margin: 1em; /* Comment here */
padding: 2em;
/* color: white; */
background-color: blue;
}
/*
multi-line
comment here
*/